From 3d76e707633b66e01791a0a09e38e91213b963c2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Jul 2024 20:15:12 -0400 Subject: tests: Add tests for invalid users/groups --- tests/gnu/gid.out | 19 ------------------- tests/gnu/gid.sh | 1 - tests/gnu/gid_minus.out | 19 ------------------- tests/gnu/gid_minus.sh | 1 - tests/gnu/gid_minus_plus.out | 19 ------------------- tests/gnu/gid_minus_plus.sh | 1 - tests/gnu/gid_plus.out | 19 ------------------- tests/gnu/gid_plus.sh | 2 -- tests/gnu/gid_plus_plus.out | 19 ------------------- tests/gnu/gid_plus_plus.sh | 2 -- tests/gnu/uid.out | 19 ------------------- tests/gnu/uid.sh | 1 - tests/gnu/uid_minus.out | 19 ------------------- tests/gnu/uid_minus.sh | 1 - tests/gnu/uid_minus_plus.out | 19 ------------------- tests/gnu/uid_minus_plus.sh | 1 - tests/gnu/uid_plus.out | 19 ------------------- tests/gnu/uid_plus.sh | 2 -- tests/gnu/uid_plus_plus.out | 19 ------------------- tests/gnu/uid_plus_plus.sh | 2 -- 20 files changed, 204 deletions(-) delete mode 100644 tests/gnu/gid.out delete mode 100644 tests/gnu/gid.sh delete mode 100644 tests/gnu/gid_minus.out delete mode 100644 tests/gnu/gid_minus.sh delete mode 100644 tests/gnu/gid_minus_plus.out delete mode 100644 tests/gnu/gid_minus_plus.sh delete mode 100644 tests/gnu/gid_plus.out delete mode 100644 tests/gnu/gid_plus.sh delete mode 100644 tests/gnu/gid_plus_plus.out delete mode 100644 tests/gnu/gid_plus_plus.sh delete mode 100644 tests/gnu/uid.out delete mode 100644 tests/gnu/uid.sh delete mode 100644 tests/gnu/uid_minus.out delete mode 100644 tests/gnu/uid_minus.sh delete mode 100644 tests/gnu/uid_minus_plus.out delete mode 100644 tests/gnu/uid_minus_plus.sh delete mode 100644 tests/gnu/uid_plus.out delete mode 100644 tests/gnu/uid_plus.sh delete mode 100644 tests/gnu/uid_plus_plus.out delete mode 100644 tests/gnu/uid_plus_plus.sh (limited to 'tests/gnu') 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 -- cgit v1.2.3