aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-04-08 15:24:37 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-04-08 18:09:49 +0300
commit49a94c43a2dfe0710fd6ce91992795535b1d57c8 (patch)
tree45f357ebda8547bff3b419e8e082f728dc05c39b /tests/ci.testscript
parent0ea0fcc510da720d509697d6f254a9e93f1f243c (diff)
Add --build-config option to bdep-ci command
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
:
{