From 6eecad33923ae7052086866756d7e4697fe7bbd3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 2 Apr 2020 22:22:46 +0300 Subject: Add support for test-exclude task manifest value --- tests/manifest/task.testscript | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'tests') diff --git a/tests/manifest/task.testscript b/tests/manifest/task.testscript index 8b27f04..65ecd29 100644 --- a/tests/manifest/task.testscript +++ b/tests/manifest/task.testscript @@ -17,6 +17,8 @@ test.options += -t repository-url: http://pkg.example.org/1/math trust: AB:0D:3F:C1:B0:13:E4:0E:AD:4A:08:06:AE:F3:85:DB:E2:27:5F:83:11:47:A2:7\ 8:64:3C:73:60:F8:66:3A:A4 + test-exclude: libfoo-tests/1.0 + test-exclude: libfoo-examples/1.0 machine: windows_10-msvc_14 target: x86_64-microsoft-win32-msvc14.0 environment: lld @@ -222,6 +224,37 @@ test.options += -t EOE } + : test-exclude + : + { + : invalid-name + : + $* <>EOE == 1 + : 1 + test-exclude: 0ibfoo-tests/1.0 + EOI + stdin:2:15: error: invalid test exclusion package name: illegal first character (must be alphabetic) + EOE + + : no-version + : + $* <>EOE == 1 + : 1 + test-exclude: libfoo-tests + EOI + stdin:2:15: error: invalid test exclusion package: '/' is expected + EOE + + : invalid-version + : + $* <>EOE == 1 + : 1 + test-exclude: libfoo-tests/+1 + EOI + stdin:2:15: error: invalid test exclusion package version: unexpected end + EOE + } + : machine-empty : $* <'stdin:2:9: error: empty task machine' == 1 -- cgit v1.1