aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-03-16 20:21:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-03-26 20:00:31 +0300
commit2af2c4f092aa7efffe839ec615c06d22cf43cc3b (patch)
treee84676dbf273602fdf1f3541171df9dad7060daf /tests
parent392c6003321047421467e07eac31e12875377ead (diff)
Add support for interactive builds
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/testscript27
1 files changed, 24 insertions, 3 deletions
diff --git a/tests/integration/testscript b/tests/integration/testscript
index e9b0db1..1408946 100644
--- a/tests/integration/testscript
+++ b/tests/integration/testscript
@@ -126,6 +126,22 @@ rep_type = git
rfp = yes
#\
+#\
+pkg = libcmark-gfm-extensions
+ver = 0.29.0-a.1+7
+rep_url = https://pkg.cppget.org/1/alpha
+rep_type = pkg
+rfp = yes
+#\
+
+#\
+pkg = non-existing
+ver = 0.1.0
+rep_url = https://pkg.cppget.org/1/alpha
+rep_type = pkg
+rfp = yes
+#\
+
# Note that we also need to make sure that the installed package libraries are
# properly imported when configuring and running tests, and that the installed
# executables are runnable.
@@ -133,9 +149,13 @@ rfp = yes
config = "\"config.install.root='$~/install'\" \
bpkg:--fetch-timeout=60 \
\"config.bin.rpath='$~/install/lib'\" \
+config.cc.coptions=-Wall \
b.test-installed.configure:\"config.cc.loptions=-L'$~/install/lib'\" \
bpkg.test-installed.create:\"config.cc.loptions=-L'$~/install/lib'\""
+#interactive="interactive: bpkg.configure.build"
+#interactive="interactive: warning"
+
+cat <<"EOI" >=task
: 1
name: $pkg
@@ -146,6 +166,7 @@ bpkg.test-installed.create:\"config.cc.loptions=-L'$~/install/lib'\""
machine: $machine
target: $target
config: $config
+ $interactive
EOI
+if ("$environment" != "")
@@ -188,9 +209,9 @@ a = $0
chmod ugo+x $env;
sleep $wait;
$w --verbose 3 --startup --tftp-host $tftp --environments $~ \
- &?build-module/*** &build/*** \
+ &?build-module/*** &?build/*** \
&?build-installed/*** &?build-installed-bpkg/*** \
- &?dist/*** &?redist/*** \
+ &?dist/*** &?redist/*** \
&?dist-installed/*** &?redist-installed/*** \
- &task.manifest 2>|
+ &task.manifest <| 2>|
}