summaryrefslogtreecommitdiffstats
path: root/tests/gnu
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-07-27 20:15:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-07-27 20:15:12 -0400
commit3d76e707633b66e01791a0a09e38e91213b963c2 (patch)
tree104d297e4e85bf08b6a7decc3628691bec31df7e /tests/gnu
parentc50d65cb1faca8e7632a355940381b517d2ac589 (diff)
downloadbfs-3d76e707633b66e01791a0a09e38e91213b963c2.tar.xz
tests: Add tests for invalid users/groups
Diffstat (limited to 'tests/gnu')
-rw-r--r--tests/gnu/gid.out19
-rw-r--r--tests/gnu/gid.sh1
-rw-r--r--tests/gnu/gid_minus.out19
-rw-r--r--tests/gnu/gid_minus.sh1
-rw-r--r--tests/gnu/gid_minus_plus.out19
-rw-r--r--tests/gnu/gid_minus_plus.sh1
-rw-r--r--tests/gnu/gid_plus.out19
-rw-r--r--tests/gnu/gid_plus.sh2
-rw-r--r--tests/gnu/gid_plus_plus.out19
-rw-r--r--tests/gnu/gid_plus_plus.sh2
-rw-r--r--tests/gnu/uid.out19
-rw-r--r--tests/gnu/uid.sh1
-rw-r--r--tests/gnu/uid_minus.out19
-rw-r--r--tests/gnu/uid_minus.sh1
-rw-r--r--tests/gnu/uid_minus_plus.out19
-rw-r--r--tests/gnu/uid_minus_plus.sh1
-rw-r--r--tests/gnu/uid_plus.out19
-rw-r--r--tests/gnu/uid_plus.sh2
-rw-r--r--tests/gnu/uid_plus_plus.out19
-rw-r--r--tests/gnu/uid_plus_plus.sh2
20 files changed, 0 insertions, 204 deletions
diff --git a/tests/gnu/gid.out b/tests/gnu/gid.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/gid.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/gid.sh b/tests/gnu/gid.sh
deleted file mode 100644
index 2707b4a..0000000
--- a/tests/gnu/gid.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -gid "$(id -g)"
diff --git a/tests/gnu/gid_minus.out b/tests/gnu/gid_minus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/gid_minus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/gid_minus.sh b/tests/gnu/gid_minus.sh
deleted file mode 100644
index e3822f0..0000000
--- a/tests/gnu/gid_minus.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -gid "-$(($(id -g) + 1))"
diff --git a/tests/gnu/gid_minus_plus.out b/tests/gnu/gid_minus_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/gid_minus_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/gid_minus_plus.sh b/tests/gnu/gid_minus_plus.sh
deleted file mode 100644
index 4ff0877..0000000
--- a/tests/gnu/gid_minus_plus.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -gid "-+$(($(id -g) + 1))"
diff --git a/tests/gnu/gid_plus.out b/tests/gnu/gid_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/gid_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/gid_plus.sh b/tests/gnu/gid_plus.sh
deleted file mode 100644
index ccba0e6..0000000
--- a/tests/gnu/gid_plus.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-test "$(id -g)" -eq 0 && skip
-bfs_diff basic -gid +0
diff --git a/tests/gnu/gid_plus_plus.out b/tests/gnu/gid_plus_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/gid_plus_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/gid_plus_plus.sh b/tests/gnu/gid_plus_plus.sh
deleted file mode 100644
index ec7ae86..0000000
--- a/tests/gnu/gid_plus_plus.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-test "$(id -g)" -eq 0 && skip
-bfs_diff basic -gid ++0
diff --git a/tests/gnu/uid.out b/tests/gnu/uid.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/uid.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/uid.sh b/tests/gnu/uid.sh
deleted file mode 100644
index fb3cd93..0000000
--- a/tests/gnu/uid.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -uid "$(id -u)"
diff --git a/tests/gnu/uid_minus.out b/tests/gnu/uid_minus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/uid_minus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/uid_minus.sh b/tests/gnu/uid_minus.sh
deleted file mode 100644
index 6d371f2..0000000
--- a/tests/gnu/uid_minus.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -uid "-$(($(id -u) + 1))"
diff --git a/tests/gnu/uid_minus_plus.out b/tests/gnu/uid_minus_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/uid_minus_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/uid_minus_plus.sh b/tests/gnu/uid_minus_plus.sh
deleted file mode 100644
index e7a0496..0000000
--- a/tests/gnu/uid_minus_plus.sh
+++ /dev/null
@@ -1 +0,0 @@
-bfs_diff basic -uid "-+$(($(id -u) + 1))"
diff --git a/tests/gnu/uid_plus.out b/tests/gnu/uid_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/uid_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/uid_plus.sh b/tests/gnu/uid_plus.sh
deleted file mode 100644
index 22b2c8e..0000000
--- a/tests/gnu/uid_plus.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-test "$(id -u)" -eq 0 && skip
-bfs_diff basic -uid +0
diff --git a/tests/gnu/uid_plus_plus.out b/tests/gnu/uid_plus_plus.out
deleted file mode 100644
index a7ccfe4..0000000
--- a/tests/gnu/uid_plus_plus.out
+++ /dev/null
@@ -1,19 +0,0 @@
-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/gnu/uid_plus_plus.sh b/tests/gnu/uid_plus_plus.sh
deleted file mode 100644
index e021888..0000000
--- a/tests/gnu/uid_plus_plus.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-test "$(id -u)" -eq 0 && skip
-bfs_diff basic -uid ++0