diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-12-18 12:38:19 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-12-18 13:19:04 -0500 |
commit | 4b9592f93a68f88152b390898004e5e54b540cae (patch) | |
tree | 18930e6373e5e75aa2999f405971d7a29e4eebc8 /tests.sh | |
parent | 2ebbe75a8d272458cd3229b6033b2a5ce19b105b (diff) | |
download | bfs-4b9592f93a68f88152b390898004e5e54b540cae.tar.xz |
Implement -regex, -iregex, and -regextype/-E
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -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 |