From b921fb2f43869ed12822ee99a80ccba9fd67c640 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 1 Mar 2019 08:50:49 -0500 Subject: Implement -unique Closes #48 --- tests.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 189d324..f26e888 100755 --- a/tests.sh +++ b/tests.sh @@ -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 -- cgit v1.2.3