aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-11-12 14:21:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-11-12 17:02:58 +0300
commit5b2f02086f9295cf16e19cb3b7e5369b313bb422 (patch)
treed53b87ffbb7eadfa258f9d9891363306110d6f98 /tests
parente87d381eab6233f9493e7e0e96b3a5a6944cedce (diff)
Add --all-pattern option to pkg-{update,clean,test,install,uninstall} commands
Diffstat (limited to 'tests')
-rw-r--r--tests/pkg-test.testscript37
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
:
{