aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-09-29 14:05:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-10-02 16:40:52 +0300
commitcfc3ca1bbb9ac617006a5af575676eeb6e520390 (patch)
tree6d6a9f17c772c11019f770bfad58987af3ad5e6f /tests/ci.testscript
parent8d6f54f819d857aa89135a2474d5951ef02fd068 (diff)
Add support for *-build-*email package manifest value overrides in bdep-ci
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index d604aa7..9b365d3 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -200,6 +200,42 @@ windows = ($cxx.target.class == 'windows')
EOE
}
+ : package-build-emails
+ :
+ {
+ $clone_prj;
+
+ $* --override 'default-build-email: foo@example.com' \
+ --override 'default-build-warning-email: bar@example.com' 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
+ : common-package-build-emails
+ :
+ {
+ $clone_prj;
+
+ $* --build-email 'foo@example.com' \
+ --override 'default-build-warning-email: bar@example.com' 2>>EOE != 0
+ error: invalid --override option value: 'default-build-warning-email' override specified together with 'build-email' override
+ info: override: default-build-warning-email: bar@example.com
+ EOE
+ }
+
+ : package-build-common-emails
+ :
+ {
+ $clone_prj;
+
+ $* --override 'default-build-warning-email: foo@example.com' \
+ --override 'build-error-email: bar@example.com' 2>>EOE != 0
+ error: invalid --override option value: 'build-error-email' override specified together with 'default-build-warning-email' override
+ info: override: build-error-email: bar@example.com
+ EOE
+ }
+
: build-configs-constraints
:
{