aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manifest/testscript')
-rw-r--r--tests/manifest/testscript63
1 files changed, 50 insertions, 13 deletions
diff --git a/tests/manifest/testscript b/tests/manifest/testscript
index 3179005..4f6433b 100644
--- a/tests/manifest/testscript
+++ b/tests/manifest/testscript
@@ -4023,6 +4023,17 @@
tests: bar config.bar.test = foo
EOF
+ : enable
+ :
+ $* <<EOF >>EOF
+ : 1
+ name: foo
+ version: 2.0.0
+ summary: Modern C++ parser
+ license: LGPLv2
+ tests: bar == 1.0.0 ? ($windows) config.bar.test = foo
+ EOF
+
: invalid-variable
:
$* <<EOI 2>>EOE != 0
@@ -4037,6 +4048,45 @@
EOE
}
+ : enable
+ :
+ {
+ : after-version-constraint
+ :
+ $* <<EOF >>EOF
+ : 1
+ name: foo
+ version: 2.0.0
+ summary: Modern C++ parser
+ license: LGPLv2
+ tests: bar == 1.0.0 ? ($windows)
+ EOF
+
+ : no-version-constraint
+ :
+ $* <<EOF >>EOF
+ : 1
+ name: foo
+ version: 2.0.0
+ summary: Modern C++ parser
+ license: LGPLv2
+ tests: bar ? ($windows)
+ EOF
+
+ : unterminated
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ name: foo
+ version: 2.0.0
+ summary: Modern C++ parser
+ license: LGPLv2
+ tests: bar ? ($windows
+ EOI
+ stdin:6:8: error: unterminated evaluation context
+ EOE
+ }
+
: newline
:
$* <<EOI 2>>EOE != 0
@@ -4091,19 +4141,6 @@
EOI
stdin:6:8: error: only single package allowed
EOE
-
- : enable
- :
- $* <<EOI 2>>EOE != 0
- : 1
- name: foo
- version: 2.0.0
- summary: Modern C++ parser
- license: LGPLv2
- tests: bar ? (windows)
- EOI
- stdin:6:8: error: unexpected enable clause
- EOE
}
: buildfile