aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-13 12:27:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-13 12:29:04 +0200
commit8ab23ad062f53ed32107f19d7e855c07992eb517 (patch)
tree92947aa8a46b81030d5bcf9cce1d57b55dfadb1c /tests
parenta90f24b0f3923c47318f063c0c9684452c431e1f (diff)
Add --type|-t,source sub-option for customizing source subdirectory
For example: $ bdep new -l c++ -t lib,source=libhello/io libhello-io
Diffstat (limited to 'tests')
-rw-r--r--tests/new.testscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index d8858b3..4fefe56 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -173,6 +173,18 @@ status += -d prj
EOE
}
+ : lib-alt-source
+ :
+ {
+ $* -l c++ -t lib,source=libprj/foo libprj-foo 2>>/"EOE" &libprj-foo/***;
+ created new library project libprj-foo in $~/libprj-foo/
+ EOE
+
+ $build libprj-foo/ $config_cxx 2>>~%EOE%
+ %(version\.in|c\+\+|ar|ld) .+%{7}
+ EOE
+ }
+
# C versions of the above.
#
: exe-c