aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-03-12 22:37:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-03-26 19:05:04 +0300
commit830a4116160fc31710d6a3df898faa3b6a1a48db (patch)
tree672f5656f14c7ace52bcc9a020221b3bcf7d96c1 /tests/ci.testscript
parent66df96d564dbe383c81a797d9e84ad3b5bf24a84 (diff)
Add --interactive|-i option to bdep-ci command
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript74
1 files changed, 73 insertions, 1 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index 9aae4ea..d72d872 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -156,7 +156,7 @@ windows = ($cxx.target.class == 'windows')
--override 'build-error-email: error@example.com' \
--override 'builds: &gcc' \
--override 'build-include: linux*' \
- --override 'build-exclude: *' 2>>~"%EOE%"
+ --override 'build-exclude: *' 2>>~%EOE%
%CI request is queued.*%
%reference: .+%
EOE
@@ -233,6 +233,67 @@ windows = ($cxx.target.class == 'windows')
}
}
}
+
+ : interactive
+ :
+ {
+ +$clone_root_prj
+ +$init -C @cfg &prj-cfg/***
+
+ test.options += --no-progress
+
+ : valid
+ :
+ {
+ $clone_prj;
+
+ $* --interactive 'linux_debian_8-gcc_4.9/warning' 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
+ : def-breakpoint
+ :
+ {
+ $clone_prj;
+
+ $* --interactive 'linux_debian_8-gcc_4.9' 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
+ : config-empty
+ :
+ {
+ $clone_prj;
+
+ $* --interactive '/warning' 2>>EOE != 0
+ error: invalid --interactive|-i option value '/warning': configuration name is empty
+ EOE
+ }
+
+ : config-pattern
+ :
+ {
+ $clone_prj;
+
+ $* --interactive 'linux_debian_8-gcc_4.*' 2>>EOE != 0
+ error: invalid --interactive|-i option value 'linux_debian_8-gcc_4.*': configuration name is a pattern
+ EOE
+ }
+
+ : overrides
+ :
+ {
+ $clone_prj;
+
+ $* --interactive 'linux_debian_8-gcc_4.9' --builds '&gcc' 2>>EOE != 0
+ error: 'builds' override specified together with --interactive|-i
+ EOE
+ }
+ }
}
: multi-pkg
@@ -288,6 +349,17 @@ windows = ($cxx.target.class == 'windows')
EOE
}
+ : interactive
+ :
+ {
+ $clone_prj;
+ $init -C @cfg &prj-cfg/***;
+
+ $* --interactive 'linux_debian_8-gcc_4.9' 2>>EOE != 0
+ error: multiple packages specified with --interactive|-i
+ EOE
+ }
+
: prompt
:
{