aboutsummaryrefslogtreecommitdiff
path: root/tests/ci
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ci')
-rw-r--r--tests/ci/buildfile1
-rw-r--r--tests/ci/ci-dir.testscript1
-rw-r--r--tests/ci/ci-load.testscript39
-rw-r--r--tests/ci/data.testscript17
4 files changed, 45 insertions, 13 deletions
diff --git a/tests/ci/buildfile b/tests/ci/buildfile
index 280e364..6f6e82d 100644
--- a/tests/ci/buildfile
+++ b/tests/ci/buildfile
@@ -1,5 +1,4 @@
# file : tests/ci/buildfile
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
dir = ../../brep/handler/ci/
diff --git a/tests/ci/ci-dir.testscript b/tests/ci/ci-dir.testscript
index c850df0..be5a9b9 100644
--- a/tests/ci/ci-dir.testscript
+++ b/tests/ci/ci-dir.testscript
@@ -1,5 +1,4 @@
# file : tests/ci/ci-dir.testscript
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
.include data.testscript
diff --git a/tests/ci/ci-load.testscript b/tests/ci/ci-load.testscript
index bc0d521..eb9ba7c 100644
--- a/tests/ci/ci-load.testscript
+++ b/tests/ci/ci-load.testscript
@@ -1,5 +1,4 @@
# file : tests/ci/ci-load.testscript
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
.include data.testscript
@@ -106,6 +105,14 @@
email: user@example.org
%depends: \\* build2 .+%
%depends: \\* bpkg .+%
+ bootstrap-build:\\
+ project = libhello
+ %.+
+ \\
+ root-build:\\
+ cxx.std = latest
+ %.+
+ \\
location: libhello
%fragment: .+%
:
@@ -117,6 +124,14 @@
email: user@example.org
%depends: \\* build2 .+%
%depends: \\* bpkg .+%
+ bootstrap-build:\\
+ project = hello
+ %.+
+ \\
+ root-build:\\
+ cxx.std = latest
+ %.+
+ \\
location: hello
%fragment: .+%
EOE
@@ -149,6 +164,14 @@
email: user@example.org
%depends: \\* build2 .+%
%depends: \\* bpkg .+%
+ bootstrap-build:\\
+ project = hello
+ %.+
+ \\
+ root-build:\\
+ cxx.std = latest
+ %.+
+ \\
location: hello
%fragment: .+%
EOE
@@ -182,6 +205,14 @@
email: user@example.org
%depends: \\* build2 .+%
%depends: \\* bpkg .+%
+ bootstrap-build:\\
+ project = libhello
+ %.+
+ \\
+ root-build:\\
+ cxx.std = latest
+ %.+
+ \\
location: libhello
%fragment: .+%
EOE
@@ -201,7 +232,11 @@
%.
reference: $request_id
EOO
- %.*:.*%+
+ %.+cache:cache%
+ : 1
+ %.+
+ : 1
+ %.+
EOE
}
}
diff --git a/tests/ci/data.testscript b/tests/ci/data.testscript
index f584bc6..6f44c85 100644
--- a/tests/ci/data.testscript
+++ b/tests/ci/data.testscript
@@ -1,14 +1,13 @@
# file : tests/ci/data.testscript
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
# Pre-created CI request data directory that will be copied by subsequent
# tests and scope setup commands. The common approach will be that group
-# scopes copy and modify the parent scope submission directory as required
+# scopes copy and modify the parent scope request data directory as required
# by the nested tests and scopes. Tests will also clone the parent scope
-# submission data directory to optionally modify it, use and cleanup at the
-# end. Note that configuration can not be shared between multiple submission
-# handler processes. Also we need to make sure that submission data
+# request data data directory to optionally modify it, use and cleanup at the
+# end. Note that request data directory can not be shared between multiple
+# submission handler processes. Also we need to make sure that request data
# directories are not cloned while being used by submission handler scripts.
#
data_dir = $regex.replace($path_search('*/request.manifest', $src_base), \
@@ -35,10 +34,10 @@ root_data_dir = $~/$data_dir
# The most commonly used submission data directory cloning command that copies
# it from the parent scope working directory.
#
-clone_data = cp --no-cleanup -r ../$data_dir ./
-clone_data_clean = cp --no-cleanup -r ../$data_dir ./ &$data_dir/***
+clone_data = [cmdline] cp --no-cleanup -r ../$data_dir ./
+clone_data_clean = [cmdline] cp --no-cleanup -r ../$data_dir ./ &$data_dir/***
# Clones the original submission data directory.
#
-clone_root_data = cp --no-cleanup -r $root_data_dir ./
-clone_root_data_clean = cp --no-cleanup -r $root_data_dir ./ &$data_dir/***
+clone_root_data = [cmdline] cp --no-cleanup -r $root_data_dir ./
+clone_root_data_clean = [cmdline] cp --no-cleanup -r $root_data_dir ./ &$data_dir/***