From 66dc98dfcc72a1fd928d57d3b9cbe88e7481dba0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 1 Feb 2022 16:38:59 -0500 Subject: tests: New test for ** in a glob --- tests.sh | 5 +++++ tests/test_name_star_star.out | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 tests/test_name_star_star.out diff --git a/tests.sh b/tests.sh index 4248378..1624d18 100755 --- a/tests.sh +++ b/tests.sh @@ -232,6 +232,7 @@ posix_tests=( test_name_root test_name_root_depth test_name_trailing_slash + test_name_star_star test_newer test_newer_link @@ -1292,6 +1293,10 @@ function test_name_slashes() { bfs_diff /// -maxdepth 0 -name / } +function test_name_star_star() { + bfs_diff basic -name '**f**' +} + function test_path() { bfs_diff basic -path 'basic/*f*' } diff --git a/tests/test_name_star_star.out b/tests/test_name_star_star.out new file mode 100644 index 0000000..a9e5d42 --- /dev/null +++ b/tests/test_name_star_star.out @@ -0,0 +1,4 @@ +basic/e/f +basic/j/foo +basic/k/foo +basic/l/foo -- cgit v1.2.3