summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-11-10 09:48:54 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-11-10 09:48:54 -0500
commit68c96e0b44932196920c2d3f05d5f873e1db69dc (patch)
treed52ba50c4964121f4222705261ca969c6eb9b2e7 /tests
parentffab78fcb425ffb51fb1e70adcd0188f0112402c (diff)
downloadbfs-68c96e0b44932196920c2d3f05d5f873e1db69dc.tar.xz
tests: Improve test coverage a bit
Diffstat (limited to 'tests')
-rw-r--r--tests/test_D_all.out19
-rw-r--r--tests/test_D_multi.out19
-rw-r--r--tests/test_O0.out19
-rw-r--r--tests/test_O1.out19
-rw-r--r--tests/test_O2.out19
-rw-r--r--tests/test_O3.out19
-rw-r--r--tests/test_Ofast.out19
-rw-r--r--tests/test_fprint0.outbin0 -> 16 bytes
-rw-r--r--tests/test_fprintf.out19
-rw-r--r--tests/test_perm_setid.out3
-rw-r--r--tests/test_perm_sticky.out2
-rw-r--r--tests/test_print0.outbin0 -> 16 bytes
12 files changed, 157 insertions, 0 deletions
diff --git a/tests/test_D_all.out b/tests/test_D_all.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_D_all.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_D_multi.out b/tests/test_D_multi.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_D_multi.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_O0.out b/tests/test_O0.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_O0.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_O1.out b/tests/test_O1.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_O1.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_O2.out b/tests/test_O2.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_O2.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_O3.out b/tests/test_O3.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_O3.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_Ofast.out b/tests/test_Ofast.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_Ofast.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_fprint0.out b/tests/test_fprint0.out
new file mode 100644
index 0000000..1347444
--- /dev/null
+++ b/tests/test_fprint0.out
Binary files differ
diff --git a/tests/test_fprintf.out b/tests/test_fprintf.out
new file mode 100644
index 0000000..77ce17a
--- /dev/null
+++ b/tests/test_fprintf.out
@@ -0,0 +1,19 @@
+%p(basic) %d(0) %f(basic) %h(.) %H(basic) %P() %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/a) %d(1) %f(a) %h(basic) %H(basic) %P(a) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/b) %d(1) %f(b) %h(basic) %H(basic) %P(b) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/c) %d(1) %f(c) %h(basic) %H(basic) %P(c) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/c/d) %d(2) %f(d) %h(basic/c) %H(basic) %P(c/d) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/e) %d(1) %f(e) %h(basic) %H(basic) %P(e) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/e/f) %d(2) %f(f) %h(basic/e) %H(basic) %P(e/f) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/g) %d(1) %f(g) %h(basic) %H(basic) %P(g) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/g/h) %d(2) %f(h) %h(basic/g) %H(basic) %P(g/h) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/i) %d(1) %f(i) %h(basic) %H(basic) %P(i) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/j) %d(1) %f(j) %h(basic) %H(basic) %P(j) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/j/foo) %d(2) %f(foo) %h(basic/j) %H(basic) %P(j/foo) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/k) %d(1) %f(k) %h(basic) %H(basic) %P(k) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/k/foo) %d(2) %f(foo) %h(basic/k) %H(basic) %P(k/foo) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/k/foo/bar) %d(3) %f(bar) %h(basic/k/foo) %H(basic) %P(k/foo/bar) %m(644) %M(-rw-r--r--) %y(f)
+%p(basic/l) %d(1) %f(l) %h(basic) %H(basic) %P(l) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/l/foo) %d(2) %f(foo) %h(basic/l) %H(basic) %P(l/foo) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/l/foo/bar) %d(3) %f(bar) %h(basic/l/foo) %H(basic) %P(l/foo/bar) %m(755) %M(drwxr-xr-x) %y(d)
+%p(basic/l/foo/bar/baz) %d(4) %f(baz) %h(basic/l/foo/bar) %H(basic) %P(l/foo/bar/baz) %m(644) %M(-rw-r--r--) %y(f)
diff --git a/tests/test_perm_setid.out b/tests/test_perm_setid.out
new file mode 100644
index 0000000..865a74e
--- /dev/null
+++ b/tests/test_perm_setid.out
@@ -0,0 +1,3 @@
+rainbow/sgid
+rainbow/sugid
+rainbow/suid
diff --git a/tests/test_perm_sticky.out b/tests/test_perm_sticky.out
new file mode 100644
index 0000000..c07eb61
--- /dev/null
+++ b/tests/test_perm_sticky.out
@@ -0,0 +1,2 @@
+rainbow/sticky
+rainbow/sticky_ow
diff --git a/tests/test_print0.out b/tests/test_print0.out
new file mode 100644
index 0000000..1347444
--- /dev/null
+++ b/tests/test_print0.out
Binary files differ