From fe6b742fc9803afc66e8ed98c7b3ef1ccdfa9a83 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 30 Mar 2025 11:21:04 -0400 Subject: parse: Track expressions, not just strings, for conflict reporting --- tests/bfs/files0_from_stdin_twice.sh | 1 + tests/bfs/files0_from_twice.out | 4 ++++ tests/bfs/files0_from_twice.sh | 3 +++ tests/gnu/follow_files0_from.out | 42 ++++++++++++++++++++++++++++++++++++ tests/gnu/follow_files0_from.sh | 1 + tests/gnu/ok_files0_from.sh | 1 + 6 files changed, 52 insertions(+) create mode 100644 tests/bfs/files0_from_stdin_twice.sh create mode 100644 tests/bfs/files0_from_twice.out create mode 100644 tests/bfs/files0_from_twice.sh create mode 100644 tests/gnu/follow_files0_from.out create mode 100644 tests/gnu/follow_files0_from.sh create mode 100644 tests/gnu/ok_files0_from.sh (limited to 'tests') diff --git a/tests/bfs/files0_from_stdin_twice.sh b/tests/bfs/files0_from_stdin_twice.sh new file mode 100644 index 0000000..752e9de --- /dev/null +++ b/tests/bfs/files0_from_stdin_twice.sh @@ -0,0 +1 @@ +! invoke_bfs -files0-from - -files0-from - "$TEST/in1" +printf 'basic/g\0' >"$TEST/in2" +bfs_diff -files0-from "$TEST/in1" -files0-from "$TEST/in2" diff --git a/tests/gnu/follow_files0_from.out b/tests/gnu/follow_files0_from.out new file mode 100644 index 0000000..c77d546 --- /dev/null +++ b/tests/gnu/follow_files0_from.out @@ -0,0 +1,42 @@ +links +links/broken +links/broken +links/deeply +links/deeply +links/deeply/nested +links/deeply/nested +links/deeply/nested +links/deeply/nested/broken +links/deeply/nested/broken +links/deeply/nested/broken +links/deeply/nested/broken +links/deeply/nested/dir +links/deeply/nested/dir +links/deeply/nested/dir +links/deeply/nested/dir +links/deeply/nested/file +links/deeply/nested/file +links/deeply/nested/file +links/deeply/nested/file +links/deeply/nested/link +links/deeply/nested/link +links/deeply/nested/link +links/deeply/nested/link +links/file +links/file +links/hardlink +links/hardlink +links/notdir +links/notdir +links/skip +links/skip +links/skip/broken +links/skip/broken +links/skip/dir +links/skip/dir +links/skip/file +links/skip/file +links/skip/link +links/skip/link +links/symlink +links/symlink diff --git a/tests/gnu/follow_files0_from.sh b/tests/gnu/follow_files0_from.sh new file mode 100644 index 0000000..8c20f6d --- /dev/null +++ b/tests/gnu/follow_files0_from.sh @@ -0,0 +1 @@ +invoke_bfs links -print0 | bfs_diff -follow -files0-from - diff --git a/tests/gnu/ok_files0_from.sh b/tests/gnu/ok_files0_from.sh new file mode 100644 index 0000000..0e2818b --- /dev/null +++ b/tests/gnu/ok_files0_from.sh @@ -0,0 +1 @@ +! printf "basic\0" | invoke_bfs -ok echo {} \; -files0-from - -- cgit v1.2.3