aboutsummaryrefslogtreecommitdiff
path: root/tests/new.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-03-18 18:33:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-03-19 14:32:16 +0300
commit7cc7c74bcff6e4e433ced3902f0b019e9c080b64 (patch)
tree49a588df059812bd90cf7983c68a55ff756a7068 /tests/new.testscript
parenta6f2a14c328000950f6055ab41c967145ec718db (diff)
Add support for binless C libraries to bdep-new
Diffstat (limited to 'tests/new.testscript')
-rw-r--r--tests/new.testscript48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index 6fc0b93..1f5947d 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -295,6 +295,18 @@ status += -d prj
EOE
}
+ : lib-c-binless
+ :
+ {
+ $* -t lib,binless -l c libprj-foo 2>>/"EOE" &libprj-foo/***;
+ created new library project libprj-foo in $~/libprj-foo/
+ EOE
+
+ $build libprj-foo/ $config_c 2>>~%EOE%
+ %(version\.in|c|ar|ld) .+%{3}
+ EOE
+ }
+
: lib-c-prefix
:
{
@@ -319,6 +331,30 @@ status += -d prj
EOE
}
+ : lib-c-split-binless
+ :
+ {
+ $* -t lib,split,binless -l c libprj-foo 2>>/"EOE" &libprj-foo/***;
+ created new library project libprj-foo in $~/libprj-foo/
+ EOE
+
+ $build libprj-foo/ $config_c 2>>~%EOE%
+ %(version\.in|c|ld) .+%{3}
+ EOE
+ }
+
+ : lib-c-split-binless-unit-tests
+ :
+ {
+ $* -t lib,split,binless,unit-tests -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version\.in|c|ar|ld) .+%{5}
+ EOE
+ }
+
: lib-c-unit-tests
:
{
@@ -331,6 +367,18 @@ status += -d prj
EOE
}
+ : lib-c-binless-unit-tests
+ :
+ {
+ $* -t lib,binless,unit-tests -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version\.in|c|ld) .+%{5}
+ EOE
+ }
+
# Test create-from-existing functionality.
#
: exist