aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-03-07 09:03:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-03-07 09:03:33 +0200
commitf599f30ee51c8a6f796d5b9a35e8e17ee54333ee (patch)
treedd96b66b8a59ec5d05201d9958801f4d3bf21cd1 /tests
parent22d2704c963f26f05f2b42433c8d0a7dc9b5b645 (diff)
Add support for alternative build file/directory naming scheme
Specifically, the bdep-new --type|-t now has the new 'alt-naming' sub-option that can be used to create projects with the alternative naming.
Diffstat (limited to 'tests')
-rw-r--r--tests/new.testscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index 8bfdc36..ca33056 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -68,6 +68,30 @@ status += -d prj
EOE
}
+ : exe-alt-naming
+ :
+ {
+ $* -t exe,alt-naming,unit-tests -l c++ foo 2>>/"EOE" &foo/***;
+ created new executable project foo in $~/foo/
+ EOE
+
+ $build foo/ $cxx 2>>~%EOE%
+ %(c\+\+|ld|ar) .+%{5}
+ EOE
+ }
+
+ : lib-alt-naming
+ :
+ {
+ $* -t lib,alt-naming,unit-tests -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $cxx 2>>~%EOE%
+ %(version\.in|c\+\+|ar|ld) .+%{11}
+ EOE
+ }
+
: lib-binless
:
{