From 7cc7c74bcff6e4e433ced3902f0b019e9c080b64 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 18 Mar 2021 18:33:53 +0300 Subject: Add support for binless C libraries to bdep-new --- tests/new.testscript | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'tests/new.testscript') 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 -- cgit v1.1