summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_usernext_test.sh
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-02-10 18:13:31 -0500
committerCameron Katri <me@cameronkatri.com>2021-02-10 19:00:38 -0500
commit9768b265bd097e561103188bb97f64ef26c6cee1 (patch)
treed31efcee098e5f18f411f72c26782ebfe53523b5 /pw/tests/pw_usernext_test.sh
parentec831d9055a20b69cb9a7300990b8e4414cbd474 (diff)
downloadpw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.tar.gz
pw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.zip
New Makefile, freebsd reallocarray.c, freebsd strtonum for 12/13 compat, delete tests
Diffstat (limited to 'pw/tests/pw_usernext_test.sh')
-rwxr-xr-xpw/tests/pw_usernext_test.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/pw/tests/pw_usernext_test.sh b/pw/tests/pw_usernext_test.sh
deleted file mode 100755
index 89f938e..0000000
--- a/pw/tests/pw_usernext_test.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-# $FreeBSD$
-
-# Import helper functions
-. $(atf_get_srcdir)/helper_functions.shin
-
-# Test usernext after adding a random number of new users.
-atf_test_case usernext
-usernext_body() {
- populate_etc_skel
-
- CURRENT=`${PW} usernext | sed -e 's/:.*//'`
- RANDOM=`jot -r 1 1 150`
- MAX=`expr ${CURRENT} + ${RANDOM}`
- while [ "${CURRENT}" -lt "${MAX}" ]
- do
- atf_check -s exit:0 ${PW} useradd test${CURRENT}
- CURRENT=`expr ${CURRENT} + 1`
- done
- atf_check -s exit:0 -o match:"${CURRENT}:${CURRENT}" \
- ${PW} usernext
-}
-
-# Test usernext when multiple users are added to the same group so
-# that group id doesn't increment at the same pace as new users.
-atf_test_case usernext_assigned_group
-usernext_assigned_group_body() {
- populate_etc_skel
-
- CURRENT=`${PW} usernext | sed -e 's/:.*//'`
- CURRENTGID=`${PW} groupnext`
- RANDOM=`jot -r 1 1 150`
- MAX=`expr ${CURRENT} + ${RANDOM}`
- while [ "${CURRENT}" -lt "${MAX}" ]
- do
- atf_check -s exit:0 ${PW} useradd -n test${CURRENT} -g 0
- CURRENT=`expr ${CURRENT} + 1`
- done
- atf_check -s exit:0 -o match:"${CURRENT}:${CURRENTGID}" \
- ${PW} usernext
-}
-
-atf_init_test_cases() {
- atf_add_test_case usernext
- atf_add_test_case usernext_assigned_group
-}