diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-07 22:12:46 -0800 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-07 22:13:10 -0800 |
commit | aafdd8eead6b5856b9adecdbcec86acc194b8af0 (patch) | |
tree | 91bf8afb2474efeed893ea35ab33847072c58f92 /tests.sh | |
parent | 0689a4a16f5e80e0c2368f4a68c69ce5f2fdc038 (diff) | |
download | bfs-aafdd8eead6b5856b9adecdbcec86acc194b8af0.tar.xz |
eval: Fix -unique with -depth
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -649,8 +649,10 @@ bfs_tests=( test_type_multi test_unique + test_unique_depth test_L_unique test_L_unique_loops + test_L_unique_depth test_xtype_multi test_xtype_reorder @@ -1987,6 +1989,10 @@ function test_unique() { bfs_diff links/{file,symlink,hardlink} -unique } +function test_unique_depth() { + bfs_diff basic -unique -depth +} + function test_L_unique() { bfs_diff -L links/{file,symlink,hardlink} -unique } @@ -1995,6 +2001,10 @@ function test_L_unique_loops() { bfs_diff -L loops/deeply/nested -unique } +function test_L_unique_depth() { + bfs_diff -L loops/deeply/nested -unique -depth +} + if [ -t 1 -a ! "$VERBOSE" ]; then in_place=yes fi |