summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
commitb74261ac825ec2b9c02d73e36f7b44b64c9d184c (patch)
treef4bce3e0742017f52bd78604abc0592904b545af /tests.sh
parent1358b69c22ac9f675f6a4d0c0d796e8dae7823fd (diff)
downloadbfs-b74261ac825ec2b9c02d73e36f7b44b64c9d184c.tar.xz
tests: Make the weird names tests POSIX-compliant
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests.sh b/tests.sh
index 3f22b22..88c3206 100755
--- a/tests.sh
+++ b/tests.sh
@@ -169,13 +169,15 @@ TESTS="$(_realpath ./tests)"
posix_tests=(
# General parsing
+ test_basic
+
test_parens
test_bang
test_implicit_and
test_a
test_o
- test_basic
+ test_weird_names
# Flags
@@ -188,6 +190,7 @@ posix_tests=(
test_L_broken
test_L_notdir
+ test_flag_weird_names
test_flag_comma
# Primaries
@@ -391,9 +394,6 @@ gnu_tests=(
test_comma
test_precedence
- test_weird_names
- test_flag_weird_names
-
test_follow_comma
# Flags
@@ -1154,12 +1154,12 @@ function test_execdir_slashes() {
function test_weird_names() {
cd weirdnames
- bfs_diff '-' '(-' '!-' ',' ')' './(' './!' \( \! -print , -print \)
+ bfs_diff '-' '(-' '!-' ',' ')' './(' './!' \( \! -print -o -print \)
}
function test_flag_weird_names() {
cd weirdnames
- bfs_diff -L '-' '(-' '!-' ',' ')' './(' './!' \( \! -print , -print \)
+ bfs_diff -L '-' '(-' '!-' ',' ')' './(' './!' \( \! -print -o -print \)
}
function test_flag_comma() {