aboutsummaryrefslogtreecommitdiff
path: root/tests/recipe
diff options
context:
space:
mode:
Diffstat (limited to 'tests/recipe')
-rw-r--r--tests/recipe/buildscript/testscript37
1 files changed, 35 insertions, 2 deletions
diff --git a/tests/recipe/buildscript/testscript b/tests/recipe/buildscript/testscript
index 6bdbd32..14036dd 100644
--- a/tests/recipe/buildscript/testscript
+++ b/tests/recipe/buildscript/testscript
@@ -1,6 +1,8 @@
# file : tests/recipe/buildscript/testscript
# license : MIT; see accompanying LICENSE file
+posix = ($cxx.target.class != 'windows')
+
+mkdir build
+cat <<EOI >=build/bootstrap.build
project = test
@@ -129,6 +131,37 @@
$* clean 2>-
}
+ : export
+ :
+ if $posix
+ {
+ cat <<EOI >=bar;
+ #!/bin/sh
+ echo "$message"
+ EOI
+
+ cat <<EOI >=buildfile;
+ exe{foo}: bar
+ {{
+ cp $path($<) $path($>)
+ }}
+ % test
+ {{
+ diag test $>
+ export message=text1
+ $> >>>?'text1'
+ env message=text2 -- $> >>>?'text2'
+ }}
+ EOI
+
+ $* test 2>>EOE;
+ cp exe{foo}
+ test exe{foo.}
+ EOE
+
+ $* clean 2>-
+ }
+
: depdb
:
{
@@ -442,7 +475,7 @@
: runner
:
- if ($cxx.target.class != 'windows')
+ if $posix
{
echo 'bar' >=bar;
@@ -512,7 +545,7 @@
: timeout
:
-if ($cxx.target.class != 'windows')
+if $posix
{
: update
: