summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-03-21 11:48:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-03-21 12:05:14 -0400
commit352b9eaf4479d204c617c68744de9ba075078308 (patch)
treec67cb5e4389c9ae00e3e748cd1dd8002911f44f8 /tests
parentaacf8aa796c3120ff65e3c0a2cbdddcf60c1777e (diff)
downloadbfs-352b9eaf4479d204c617c68744de9ba075078308.tar.xz
Implement -s flag from FreeBSD find to sort results
Diffstat (limited to 'tests')
-rw-r--r--tests/test_S_bfs.out19
-rw-r--r--tests/test_S_dfs.out19
-rw-r--r--tests/test_S_ids.out19
-rw-r--r--tests/test_s.out11
4 files changed, 68 insertions, 0 deletions
diff --git a/tests/test_S_bfs.out b/tests/test_S_bfs.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_S_bfs.out
@@ -0,0 +1,19 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
+basic/j/foo
+basic/k/foo
+basic/l/foo
+basic/k/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/test_S_dfs.out b/tests/test_S_dfs.out
new file mode 100644
index 0000000..a7ccfe4
--- /dev/null
+++ b/tests/test_S_dfs.out
@@ -0,0 +1,19 @@
+basic
+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/test_S_ids.out b/tests/test_S_ids.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_S_ids.out
@@ -0,0 +1,19 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
+basic/j/foo
+basic/k/foo
+basic/l/foo
+basic/k/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/test_s.out b/tests/test_s.out
new file mode 100644
index 0000000..e736cb5
--- /dev/null
+++ b/tests/test_s.out
@@ -0,0 +1,11 @@
+weirdnames
+weirdnames/
+weirdnames/!
+weirdnames/!-
+weirdnames/(
+weirdnames/(-
+weirdnames/)
+weirdnames/,
+weirdnames/-
+weirdnames/...
+weirdnames/\