aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-09 20:55:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-20 17:08:09 +0300
commit07ab59a93f9447d5489743e8d7e19b6adb5ebbf1 (patch)
treeaa202b26e7ac2b3b6477855e250ab0464301fd2d /tests/ci.testscript
parent8da242097fcaec5f3676f8d2296b639879825ddd (diff)
Add support for configuration type and bdep-config-link sub-command
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript26
1 files changed, 25 insertions, 1 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index d0407b5..bc3174f 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -102,7 +102,11 @@ windows = ($cxx.target.class == 'windows')
$init -C @cfg1 &prj-cfg1/***;
$init -C @cfg2 &prj-cfg2/***;
- $* --all 2>'error: multiple configurations specified for ci' != 0
+ $* --all 2>>EOE != 0
+ error: package prj is initialized in multiple specified configurations
+ info: @cfg1
+ info: @cfg2
+ EOE
}
: no-commits
@@ -393,6 +397,26 @@ windows = ($cxx.target.class == 'windows')
EOE
}
+ : diff-configs
+ :
+ {
+ $clone_prj;
+ $init -C @cfg1 -d prj/libprj &prj-cfg1/***;
+
+ # While at it, test that we fail for uninitialized package.
+ #
+ $* -d prj/prj 2>>EOE != 0;
+ error: package prj is not initialized in any configuration
+ EOE
+
+ $init -C @cfg2 --config-type host -d prj/prj &prj-cfg2/***;
+
+ $* 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
: single
:
{