aboutsummaryrefslogtreecommitdiff
path: root/tests/new.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-18 11:27:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-18 11:27:13 +0200
commit99fe901f2148b3f9ba6569fa92c1c88deef1dff5 (patch)
tree31a76e9d672614230e8a4dea715de1aeed8b1a27 /tests/new.testscript
parent8ee1f1ae8819ebe76434390a36895c5ad76bcfca (diff)
Add binless option to bdep-new c++ language parameter
This allows creation of a simpler buildfile for header-only (and, in the future, for module-only) libraries.
Diffstat (limited to 'tests/new.testscript')
-rw-r--r--tests/new.testscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index abda94b..f114ce8 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -68,6 +68,30 @@ status += -d prj
EOE
}
+ : lib-binless
+ :
+ {
+ $* -t lib -l c++,binless libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $cxx 2>>~%EOE%
+ %(version\.in|c\+\+|ld) .+%{3}
+ EOE
+ }
+
+ : lib-binless-unit-tests
+ :
+ {
+ $* -t lib,unit-tests -l c++,binless libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $cxx 2>>~%EOE%
+ %(version\.in|c\+\+|ld) .+%{5}
+ EOE
+ }
+
# C versions of the above.
#
: exe-c