aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest/task.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-20 20:33:52 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-21 13:09:10 +0300
commit5c186f901ea7d1b09ab551a3fd2a6c1fd2426d59 (patch)
treeaa41f235d3ef632c481390745bc0d589bd9c554e /tests/manifest/task.test
parent4ef51955f2c0c2da17bb922d52fd39eae0bf4464 (diff)
Add support for build configuration warning-detecting regexes
Diffstat (limited to 'tests/manifest/task.test')
-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