1# $FreeBSD$ 2 3TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.sbin/useradd 4.PATH: ${TESTSRC} 5 6TESTSDIR= ${TESTSBASE}/usr.sbin/pw 7 8ATF_TESTS_SH= pw_etcdir \ 9 pw_lock \ 10 pw_groupdel \ 11 pw_groupmod \ 12 pw_useradd \ 13 pw_userdel \ 14 pw_usermod \ 15 pw_usernext 16 17.for tp in ${ATF_TESTS_SH} 18TEST_METADATA.${tp}+= required_user="root" 19.endfor 20 21FILES= group helper_functions.shin master.passwd 22FILESDIR= ${TESTSDIR} 23 24ATF_TESTS_SH+= pw_test 25# - user{add,del} does not exist on FreeBSD; use pw user{add,del} instead 26# - The command passes on FreeBSD 27ATF_TESTS_SH_SED_pw_test= -e 's/useradd /pw useradd /' 28ATF_TESTS_SH_SED_pw_test+= -e 's/userdel /pw userdel /' 29ATF_TESTS_SH_SED_pw_test+= -e '/atf_expect_fail "PR bin\/39546"/d' 30ATF_TESTS_SH_SRC_pw_test= t_useradd.sh 31 32.include <bsd.test.mk> 33