aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-24 21:41:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-25 15:16:58 +0300
commit18bb25efa41dab4a3f7619040e2067da3533decd (patch)
tree822bd06dd0a9d5568c14862592d310fec1012b58 /tests/ci.testscript
parenta4dabaa6db8806f23bb7d7bdbb95cab456ef3a73 (diff)
Add support for --no-progress option
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript32
1 files changed, 23 insertions, 9 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index bea287d..9d61fc0 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -59,6 +59,11 @@ init += $cxx -d prj 2>! &prj/**/bootstrap/***
windows = ($cxx.target.class == 'windows')
+# Normally we disable the progress indication that complicates stderr output
+# validation. When testing the progress indication specifically we need to
+# handle curl's progress carefully, as it is not always terminated with the
+# newline character on Windows.
+#
: single-pkg
:
{
@@ -68,10 +73,22 @@ windows = ($cxx.target.class == 'windows')
$clone_root_prj;
$init -C @cfg &prj-cfg/***;
+ $* --no-progress 2>>~%EOE%
+ %CI request is queued.*%
+ %reference: .+%
+ EOE
+ }
+
+ : progress
+ :
+ {
+ $clone_root_prj;
+ $init -C @cfg &prj-cfg/***;
+
$* 2>>~"%EOE%"
submitting to $server
%.*
- %CI request is queued.*%
+ %.*CI request is queued.*%
%reference: .+%
EOE
}
@@ -146,15 +163,15 @@ windows = ($cxx.target.class == 'windows')
+$g commit -m 'Create'
+$g push --set-upstream origin master
+ test.options += --no-progress
+
: both
:
{
$clone_prj;
$init -C @cfg &prj-cfg/***;
- $* 2>>~"%EOE%"
- submitting to $server
- %.*
+ $* 2>>~%EOE%
%CI request is queued.*%
%reference: .+%
EOE
@@ -170,9 +187,7 @@ windows = ($cxx.target.class == 'windows')
#
test.arguments = $regex.apply($test.arguments, '^(prj)$', '\1/libprj');
- $* 2>>~"%EOE%"
- submitting to $server
- %.*
+ $* 2>>~%EOE%
%CI request is queued.*%
%reference: .+%
EOE
@@ -198,8 +213,7 @@ windows = ($cxx.target.class == 'windows')
package: prj
version: 1.0.1
- %.*
- %CI request is queued.*%
+ %continue\\?.+ CI request is queued.*%
%reference: .+%
EOE
}