diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-07-27 20:15:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-07-27 20:15:12 -0400 |
commit | 3d76e707633b66e01791a0a09e38e91213b963c2 (patch) | |
tree | 104d297e4e85bf08b6a7decc3628691bec31df7e | |
parent | c50d65cb1faca8e7632a355940381b517d2ac589 (diff) | |
download | bfs-3d76e707633b66e01791a0a09e38e91213b963c2.tar.xz |
tests: Add tests for invalid users/groups
-rw-r--r-- | tests/common/gid.out (renamed from tests/gnu/gid.out) | 0 | ||||
-rw-r--r-- | tests/common/gid.sh (renamed from tests/gnu/gid.sh) | 0 | ||||
-rw-r--r-- | tests/common/gid_invalid_id.sh | 1 | ||||
-rw-r--r-- | tests/common/gid_invalid_name.sh | 1 | ||||
-rw-r--r-- | tests/common/gid_minus.out (renamed from tests/gnu/gid_minus.out) | 0 | ||||
-rw-r--r-- | tests/common/gid_minus.sh (renamed from tests/gnu/gid_minus.sh) | 0 | ||||
-rw-r--r-- | tests/common/gid_minus_plus.out (renamed from tests/gnu/gid_minus_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/gid_minus_plus.sh (renamed from tests/gnu/gid_minus_plus.sh) | 0 | ||||
-rw-r--r-- | tests/common/gid_plus.out (renamed from tests/gnu/gid_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/gid_plus.sh (renamed from tests/gnu/gid_plus.sh) | 0 | ||||
-rw-r--r-- | tests/common/gid_plus_plus.out (renamed from tests/gnu/gid_plus_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/gid_plus_plus.sh (renamed from tests/gnu/gid_plus_plus.sh) | 0 | ||||
-rw-r--r-- | tests/common/uid.out (renamed from tests/gnu/uid.out) | 0 | ||||
-rw-r--r-- | tests/common/uid.sh (renamed from tests/gnu/uid.sh) | 0 | ||||
-rw-r--r-- | tests/common/uid_invalid_id.sh | 1 | ||||
-rw-r--r-- | tests/common/uid_invalid_name.sh | 1 | ||||
-rw-r--r-- | tests/common/uid_minus.out (renamed from tests/gnu/uid_minus.out) | 0 | ||||
-rw-r--r-- | tests/common/uid_minus.sh (renamed from tests/gnu/uid_minus.sh) | 0 | ||||
-rw-r--r-- | tests/common/uid_minus_plus.out (renamed from tests/gnu/uid_minus_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/uid_minus_plus.sh (renamed from tests/gnu/uid_minus_plus.sh) | 0 | ||||
-rw-r--r-- | tests/common/uid_plus.out (renamed from tests/gnu/uid_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/uid_plus.sh (renamed from tests/gnu/uid_plus.sh) | 0 | ||||
-rw-r--r-- | tests/common/uid_plus_plus.out (renamed from tests/gnu/uid_plus_plus.out) | 0 | ||||
-rw-r--r-- | tests/common/uid_plus_plus.sh (renamed from tests/gnu/uid_plus_plus.sh) | 0 | ||||
-rw-r--r-- | tests/posix/group_invalid_id.sh | 1 | ||||
-rw-r--r-- | tests/posix/group_invalid_name.sh | 1 | ||||
-rw-r--r-- | tests/posix/user_invalid_id.sh | 1 | ||||
-rw-r--r-- | tests/posix/user_invalid_name.sh | 1 |
28 files changed, 8 insertions, 0 deletions
diff --git a/tests/gnu/gid.out b/tests/common/gid.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/gid.out +++ b/tests/common/gid.out diff --git a/tests/gnu/gid.sh b/tests/common/gid.sh index 2707b4a..2707b4a 100644 --- a/tests/gnu/gid.sh +++ b/tests/common/gid.sh diff --git a/tests/common/gid_invalid_id.sh b/tests/common/gid_invalid_id.sh new file mode 100644 index 0000000..74f0055 --- /dev/null +++ b/tests/common/gid_invalid_id.sh @@ -0,0 +1 @@ +! invoke_bfs -gid 1eW6f5RM9Qi diff --git a/tests/common/gid_invalid_name.sh b/tests/common/gid_invalid_name.sh new file mode 100644 index 0000000..0e2e5f5 --- /dev/null +++ b/tests/common/gid_invalid_name.sh @@ -0,0 +1 @@ +! invoke_bfs -gid eW6f5RM9Qi diff --git a/tests/gnu/gid_minus.out b/tests/common/gid_minus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/gid_minus.out +++ b/tests/common/gid_minus.out diff --git a/tests/gnu/gid_minus.sh b/tests/common/gid_minus.sh index e3822f0..e3822f0 100644 --- a/tests/gnu/gid_minus.sh +++ b/tests/common/gid_minus.sh diff --git a/tests/gnu/gid_minus_plus.out b/tests/common/gid_minus_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/gid_minus_plus.out +++ b/tests/common/gid_minus_plus.out diff --git a/tests/gnu/gid_minus_plus.sh b/tests/common/gid_minus_plus.sh index 4ff0877..4ff0877 100644 --- a/tests/gnu/gid_minus_plus.sh +++ b/tests/common/gid_minus_plus.sh diff --git a/tests/gnu/gid_plus.out b/tests/common/gid_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/gid_plus.out +++ b/tests/common/gid_plus.out diff --git a/tests/gnu/gid_plus.sh b/tests/common/gid_plus.sh index ccba0e6..ccba0e6 100644 --- a/tests/gnu/gid_plus.sh +++ b/tests/common/gid_plus.sh diff --git a/tests/gnu/gid_plus_plus.out b/tests/common/gid_plus_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/gid_plus_plus.out +++ b/tests/common/gid_plus_plus.out diff --git a/tests/gnu/gid_plus_plus.sh b/tests/common/gid_plus_plus.sh index ec7ae86..ec7ae86 100644 --- a/tests/gnu/gid_plus_plus.sh +++ b/tests/common/gid_plus_plus.sh diff --git a/tests/gnu/uid.out b/tests/common/uid.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/uid.out +++ b/tests/common/uid.out diff --git a/tests/gnu/uid.sh b/tests/common/uid.sh index fb3cd93..fb3cd93 100644 --- a/tests/gnu/uid.sh +++ b/tests/common/uid.sh diff --git a/tests/common/uid_invalid_id.sh b/tests/common/uid_invalid_id.sh new file mode 100644 index 0000000..f5b952d --- /dev/null +++ b/tests/common/uid_invalid_id.sh @@ -0,0 +1 @@ +! invoke_bfs -uid 1eW6f5RM9Qi diff --git a/tests/common/uid_invalid_name.sh b/tests/common/uid_invalid_name.sh new file mode 100644 index 0000000..a2c359f --- /dev/null +++ b/tests/common/uid_invalid_name.sh @@ -0,0 +1 @@ +! invoke_bfs -uid eW6f5RM9Qi diff --git a/tests/gnu/uid_minus.out b/tests/common/uid_minus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/uid_minus.out +++ b/tests/common/uid_minus.out diff --git a/tests/gnu/uid_minus.sh b/tests/common/uid_minus.sh index 6d371f2..6d371f2 100644 --- a/tests/gnu/uid_minus.sh +++ b/tests/common/uid_minus.sh diff --git a/tests/gnu/uid_minus_plus.out b/tests/common/uid_minus_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/uid_minus_plus.out +++ b/tests/common/uid_minus_plus.out diff --git a/tests/gnu/uid_minus_plus.sh b/tests/common/uid_minus_plus.sh index e7a0496..e7a0496 100644 --- a/tests/gnu/uid_minus_plus.sh +++ b/tests/common/uid_minus_plus.sh diff --git a/tests/gnu/uid_plus.out b/tests/common/uid_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/uid_plus.out +++ b/tests/common/uid_plus.out diff --git a/tests/gnu/uid_plus.sh b/tests/common/uid_plus.sh index 22b2c8e..22b2c8e 100644 --- a/tests/gnu/uid_plus.sh +++ b/tests/common/uid_plus.sh diff --git a/tests/gnu/uid_plus_plus.out b/tests/common/uid_plus_plus.out index a7ccfe4..a7ccfe4 100644 --- a/tests/gnu/uid_plus_plus.out +++ b/tests/common/uid_plus_plus.out diff --git a/tests/gnu/uid_plus_plus.sh b/tests/common/uid_plus_plus.sh index e021888..e021888 100644 --- a/tests/gnu/uid_plus_plus.sh +++ b/tests/common/uid_plus_plus.sh diff --git a/tests/posix/group_invalid_id.sh b/tests/posix/group_invalid_id.sh new file mode 100644 index 0000000..1a89747 --- /dev/null +++ b/tests/posix/group_invalid_id.sh @@ -0,0 +1 @@ +! invoke_bfs -group 1eW6f5RM9Qi diff --git a/tests/posix/group_invalid_name.sh b/tests/posix/group_invalid_name.sh new file mode 100644 index 0000000..a08dc72 --- /dev/null +++ b/tests/posix/group_invalid_name.sh @@ -0,0 +1 @@ +! invoke_bfs -group eW6f5RM9Qi diff --git a/tests/posix/user_invalid_id.sh b/tests/posix/user_invalid_id.sh new file mode 100644 index 0000000..c378f7e --- /dev/null +++ b/tests/posix/user_invalid_id.sh @@ -0,0 +1 @@ +! invoke_bfs -user 1eW6f5RM9Qi diff --git a/tests/posix/user_invalid_name.sh b/tests/posix/user_invalid_name.sh new file mode 100644 index 0000000..bbf3031 --- /dev/null +++ b/tests/posix/user_invalid_name.sh @@ -0,0 +1 @@ +! invoke_bfs -user eW6f5RM9Qi |