aboutsummaryrefslogtreecommitdiff
path: root/tests/new.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new.testscript')
-rw-r--r--tests/new.testscript148
1 files changed, 148 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index a55ef0b..49f43b1 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -458,6 +458,80 @@ status += -d prj
EOE
}
+ : lib-no-symexport
+ :
+ {
+ $* -t lib,no-symexport -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ if $posix
+ $build libfoo/ $config_cxx 2>>~%EOE%
+ %(version|c\+\+|ar|ld) .+%{7}
+ EOE
+ else
+ $build 'clean:' libfoo/ 2>>~%EOE%
+ %info: .+ is clean%
+ EOE
+ end
+ }
+
+ : lib-auto-symexport
+ :
+ {
+ : basics
+ :
+ {
+ $* -t lib,auto-symexport -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_cxx 2>>~%EOE%;
+ %(version|c\+\+|ar|ld|def) .+%{9,10}
+ EOE
+
+ if ($cxx.target.system == 'win32-msvc')
+ test -f libfoo/libfoo/foo.def
+ end
+ }
+
+ : unit-tests
+ :
+ {
+ $* -t lib,auto-symexport,unit-tests -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_cxx 2>>~%EOE%
+ %(version|c\+\+|ar|ld|def) .+%{11,12}
+ EOE
+ }
+
+ : split
+ :
+ {
+ $* -t lib,auto-symexport,split -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_cxx 2>>~%EOE%
+ %(version|c\+\+|ar|ld|def) .+%{9,10}
+ EOE
+ }
+
+ : unit-tests-split
+ :
+ {
+ $* -t lib,auto-symexport,unit-tests,split -l c++ libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_cxx 2>>~%EOE%
+ %(version|c\+\+|ar|ld|def) .+%{11,12}
+ EOE
+ }
+ }
+
# C versions of the above.
#
: exe-c
@@ -762,6 +836,80 @@ status += -d prj
EOE
}
+ : lib-c-no-symexport
+ :
+ {
+ $* -t lib,no-symexport -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ if $posix
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version|c|ar|ld) .+%{7}
+ EOE
+ else
+ $build 'clean:' libfoo/ 2>>~%EOE%
+ %info: .+ is clean%
+ EOE
+ end
+ }
+
+ : lib-c-auto-symexport
+ :
+ {
+ : basics
+ :
+ {
+ $* -t lib,auto-symexport -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%;
+ %(version|c|ar|ld|def) .+%{9,10}
+ EOE
+
+ if ($c.target.system == 'win32-msvc')
+ test -f libfoo/libfoo/foo.def
+ end
+ }
+
+ : unit-tests
+ :
+ {
+ $* -t lib,auto-symexport,unit-tests -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version|c|ar|ld|def) .+%{11,12}
+ EOE
+ }
+
+ : split
+ :
+ {
+ $* -t lib,auto-symexport,split -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version|c|ar|ld|def) .+%{9,10}
+ EOE
+ }
+
+ : unit-tests-split
+ :
+ {
+ $* -t lib,auto-symexport,unit-tests,split -l c libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+
+ $build libfoo/ $config_c 2>>~%EOE%
+ %(version|c|ar|ld|def) .+%{11,12}
+ EOE
+ }
+ }
+
# Test create-from-existing functionality.
#
: exist