aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-29 19:00:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-31 19:18:10 +0300
commita6b270a6e0116f2975f05dc9db731885f956bdc6 (patch)
tree1152946fc058356d0974072cc3a8dd957e670a03 /tests
parent7a12f8bdcb4d497489a4df1e1024e724b316085a (diff)
Use environment task manifest value to locate environment setup executable
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/testscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/integration/testscript b/tests/integration/testscript
index 7692436..2e7deb2 100644
--- a/tests/integration/testscript
+++ b/tests/integration/testscript
@@ -27,6 +27,7 @@ sudo /usr/sbin/in.tftpd \
machine = linux-gcc
target = x86_64-linux-gnu
+environment =
c = gcc
cxx = g++
@@ -96,6 +97,10 @@ bpkg.test-installed.create:\"config.bin.rpath='$~/install/lib'\""
config: $config
EOI
++if ("$environment" != "")
+ echo "environment: $environment" >+task
+end
+
#
#
tftp = 127.0.0.1:55123
@@ -119,7 +124,9 @@ a = $0
: worker
:
{
- cat <<"EOI" >=$target;
+ env = ("$environment" != "" ? "$environment" : "default")
+
+ cat <<"EOI" >=$env;
#!/bin/sh
t="\$1"
@@ -127,7 +134,7 @@ a = $0
exec "\$@" cc config.c=$c config.cxx=$cxx
EOI
- chmod ugo+x $target;
+ chmod ugo+x $env;
sleep $wait;
$w --verbose 3 --startup --tftp-host $tftp --environments $~ \
&build/*** &?build-installed/*** &?build-tests-installed/*** \