diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-01 08:50:49 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-01 08:51:44 -0500 |
commit | b921fb2f43869ed12822ee99a80ccba9fd67c640 (patch) | |
tree | 374a249116e60fbe38be6c098f36fcd8d1a193c9 /tests.sh | |
parent | b59a6f99a18246b08beb7997d9d2f59bac14d2de (diff) | |
download | bfs-b921fb2f43869ed12822ee99a80ccba9fd67c640.tar.xz |
Implement -unique
Closes #48
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -648,6 +648,10 @@ bfs_tests=( test_type_multi + test_unique + test_L_unique + test_L_unique_loops + test_xtype_multi test_xtype_reorder @@ -1979,6 +1983,18 @@ function test_closed_stderr() { ! invoke_bfs basic >&- 2>&- } +function test_unique() { + bfs_diff links/{file,symlink,hardlink} -unique +} + +function test_L_unique() { + bfs_diff -L links/{file,symlink,hardlink} -unique +} + +function test_L_unique_loops() { + bfs_diff -L loops/deeply/nested -unique +} + if [ -t 1 -a ! "$VERBOSE" ]; then in_place=yes fi |