aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/task.test32
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/manifest/task.test b/tests/manifest/task.test
index f2afd9c..95bb749 100644
--- a/tests/manifest/task.test
+++ b/tests/manifest/task.test
@@ -21,6 +21,7 @@ test.options += -t
machine: windows_10-msvc_14
target: x86_64-microsoft-win32-msvc14.0
config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG
+ warning-regex: '^warning: ' '^.+: warning: '
EOF
: no-target
@@ -32,9 +33,10 @@ test.options += -t
repository: http://pkg.example.org/1/math
machine: windows_10-msvc_14
config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG
+ warning-regex: '^warning: ' '^.+: warning: '
EOF
- : no-config
+ : no-config-no-regex
:
$* <<EOF >>EOF
: 1
@@ -135,6 +137,14 @@ test.options += -t
config: config.cc.coptions=/Z7
config: config.cc.loptions=/DEBUG
EOI
+
+ : warning-regex
+ :
+ $* <<EOI 2>'stdin:3:1: error: task warning regex redefinition' == 1
+ : 1
+ warning-regex: '^warning: '
+ warning-regex: '^.+: warning: '
+ EOI
}
: invalid
@@ -237,6 +247,26 @@ test.options += -t
}
}
+ : warning-regex
+ :
+ {
+ : empty
+ :
+ $* <<EOI 2>'stdin:2:15: error: empty task warning regex' == 1
+ : 1
+ warning-regex:
+ EOI
+
+ : regex-error
+ :
+ $* <<EOI 2>>~/EOE/ == 1
+ : 1
+ warning-regex: '^[warning: '
+ EOI
+ /stdin:2:16: error: invalid task warning regex: invalid regex.*/
+ EOE
+ }
+
: trust
:
$* <<EOI 2>'stdin:2:8: error: invalid repository certificate fingerprint' == 1