aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript60
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index d72d872..d0407b5 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -234,6 +234,66 @@ windows = ($cxx.target.class == 'windows')
}
}
+ : build-config
+ :
+ {
+ +$clone_root_prj
+ +$init -C @cfg &prj-cfg/***
+
+ test.options += --no-progress
+
+ : valid
+ :
+ {
+ $clone_prj;
+
+ $* --build-config 'linux**/x86_64**' --build-config 'freebsd**' 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
+ : empty-config
+ :
+ {
+ $clone_prj;
+
+ $* --build-config '/x86_64**' 2>>EOE != 0
+ error: invalid --build-config option value: empty build configuration name pattern in '/x86_64**'
+ EOE
+ }
+
+ : empty-target
+ :
+ {
+ $clone_prj;
+
+ $* --build-config 'linux**/' 2>>EOE != 0
+ error: invalid --build-config option value: empty build target pattern in 'linux**/'
+ EOE
+ }
+
+ : overrides
+ :
+ {
+ $clone_prj;
+
+ $* --build-config 'linux_debian_8-gcc_4.9' --builds '&gcc' 2>>EOE != 0
+ error: 'builds' override specified together with --build-config
+ EOE
+ }
+
+ : interactive
+ :
+ {
+ $clone_prj;
+
+ $* --build-config 'linux**' --interactive 'linux_debian_8-gcc_4.9' 2>>EOE != 0
+ error: --build-config specified together with --interactive|-i
+ EOE
+ }
+ }
+
: interactive
:
{