summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-12-18 12:38:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-12-18 13:19:04 -0500
commit4b9592f93a68f88152b390898004e5e54b540cae (patch)
tree18930e6373e5e75aa2999f405971d7a29e4eebc8 /tests.sh
parent2ebbe75a8d272458cd3229b6033b2a5ce19b105b (diff)
downloadbfs-4b9592f93a68f88152b390898004e5e54b540cae.tar.xz
Implement -regex, -iregex, and -regextype/-E
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh30
1 files changed, 29 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index b880612..afd7275 100755
--- a/tests.sh
+++ b/tests.sh
@@ -550,7 +550,35 @@ function test_0100() {
bfs_diff /// -maxdepth 0 -execdir echo '{}' ';'
}
-for i in {1..100}; do
+function test_0101() {
+ bfs_diff basic -regex 'basic/./.'
+}
+
+function test_0102() {
+ bfs_diff basic -iregex 'basic/[A-Z]/[a-z]'
+}
+
+function test_0103() {
+ cd weirdnames
+ bfs_diff -regex '\./\((\)'
+}
+
+function test_0104() {
+ cd weirdnames
+ bfs_diff -E -regex '\./(\()'
+}
+
+function test_0105() {
+ cd weirdnames
+ bfs_diff -regextype posix-basic -regex '\./\((\)'
+}
+
+function test_0106() {
+ cd weirdnames
+ bfs_diff -regextype posix-extended -regex '\./(\()'
+}
+
+for i in {1..106}; do
test="test_$(printf '%04d' $i)"
if [ -t 1 ]; then