From c3158b221ef94b4f2c0d2a67aebcce22acf50993 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 31 Jan 2024 18:17:59 +0300 Subject: Add support for enable clause in tests package manifest value --- tests/manifest/testscript | 63 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 13 deletions(-) (limited to 'tests') 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 + : 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 : $* <>EOE != 0 @@ -4037,6 +4048,45 @@ EOE } + : enable + : + { + : after-version-constraint + : + $* <>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 + : 1 + name: foo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + tests: bar ? ($windows) + EOF + + : unterminated + : + $* <>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 : $* <>EOE != 0 @@ -4091,19 +4141,6 @@ EOI stdin:6:8: error: only single package allowed EOE - - : enable - : - $* <>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 -- cgit v1.1