diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pkg-test.testscript | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/pkg-test.testscript b/tests/pkg-test.testscript index 5e212f4..c8b4a8e 100644 --- a/tests/pkg-test.testscript +++ b/tests/pkg-test.testscript @@ -42,6 +42,13 @@ test.options += --build-option -s info: run 'bpkg help pkg-test' for more information EOE + : all-all-pattern + : + $* --all --all-pattern 'lib*' 2>>EOE != 0 + error: both --all|-a and --all-pattern specified + info: run 'bpkg help pkg-test' for more information + EOE + : all-name : $* --all libbaz 2>>EOE != 0 @@ -49,6 +56,13 @@ test.options += --build-option -s info: run 'bpkg help pkg-test' for more information EOE + : all-pattern-name + : + $* --all-pattern 'lib*' libbaz 2>>EOE != 0 + error: both --all-pattern and package argument specified + info: run 'bpkg help pkg-test' for more information + EOE + : recursive-immediate : $* libbaz --recursive --immediate 2>>~%EOE% != 0 @@ -92,6 +106,29 @@ test.options += --build-option -s } } +: all-pattern +: +{ + : match + : + { + $clone_root_cfg; + + $* --all-pattern 'libf*' --all-pattern 'lib*' --all-pattern 'libz*' 2>>~%EOE% + %info: .+ has nothing to test% + tested libbaz/0.0.3 + EOE + } + + : not-match + : + { + $clone_root_cfg; + + $* --all-pattern 'libf*' 2>'info: nothing to test' + } +} + : immediate : { |