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_config \ 11 pw_groupdel \ 12 pw_groupmod \ 13 pw_useradd \ 14 pw_userdel \ 15 pw_usermod \ 16 pw_usernext 17 18.for tp in ${ATF_TESTS_SH} 19TEST_METADATA.${tp}+= required_user="root" 20.endfor 21 22FILES= group helper_functions.shin master.passwd pw.conf \ 23 pw-modified.conf 24FILESDIR= ${TESTSDIR} 25 26ATF_TESTS_SH+= pw_test 27# - user{add,del} does not exist on FreeBSD; use pw user{add,del} instead 28# - The command passes on FreeBSD 29ATF_TESTS_SH_SED_pw_test= -e 's/useradd /pw useradd /' 30ATF_TESTS_SH_SED_pw_test+= -e 's/userdel /pw userdel /' 31ATF_TESTS_SH_SED_pw_test+= -e '/atf_expect_fail "PR bin\/39546"/d' 32ATF_TESTS_SH_SRC_pw_test= t_useradd.sh 33 34.include <bsd.test.mk> 35