From 4010140cb748cc4f7f57b0a3d514485796c665ce Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 7 Jan 2024 12:42:03 -0500 Subject: tests/bfs/D_opt: New test for more -D opt coverage --- tests/bfs/D_opt.out | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/bfs/D_opt.out (limited to 'tests/bfs/D_opt.out') diff --git a/tests/bfs/D_opt.out b/tests/bfs/D_opt.out new file mode 100644 index 0000000..3b461cf --- /dev/null +++ b/tests/bfs/D_opt.out @@ -0,0 +1,18 @@ +basic/a +basic/b +basic/c +basic/c/d +basic/e +basic/e/f +basic/g +basic/g/h +basic/i +basic/j +basic/j/foo +basic/k +basic/k/foo +basic/k/foo/bar +basic/l +basic/l/foo +basic/l/foo/bar +basic/l/foo/bar/baz -- cgit v1.2.3 From 39ce13d45c5881d84e2de98243052811e3648224 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Feb 2024 22:10:06 -0500 Subject: tests/bfs/D_opt: Don't rely on directory link counts Fixes: https://github.com/tavianator/bfs/issues/131 --- tests/bfs/D_opt.out | 11 ----------- tests/bfs/D_opt.sh | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'tests/bfs/D_opt.out') diff --git a/tests/bfs/D_opt.out b/tests/bfs/D_opt.out index 3b461cf..6218a0c 100644 --- a/tests/bfs/D_opt.out +++ b/tests/bfs/D_opt.out @@ -1,18 +1,7 @@ basic/a basic/b -basic/c basic/c/d -basic/e basic/e/f -basic/g -basic/g/h -basic/i -basic/j basic/j/foo -basic/k -basic/k/foo basic/k/foo/bar -basic/l -basic/l/foo -basic/l/foo/bar basic/l/foo/bar/baz diff --git a/tests/bfs/D_opt.sh b/tests/bfs/D_opt.sh index d95cf86..c14fe70 100644 --- a/tests/bfs/D_opt.sh +++ b/tests/bfs/D_opt.sh @@ -1 +1 @@ -bfs_diff -D opt -nohidden -not \( -type b -o -type c \) -links -5 -links -10 -not -hidden basic +bfs_diff -D opt -nohidden -not \( -type c -o -type d \) -links -5 -links -10 -not -hidden basic -- cgit v1.2.3