2014-10-02 19:53:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-11-03 06:07:55 +00:00
|
|
|
TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.sbin/useradd
|
|
|
|
.PATH: ${TESTSRC}
|
|
|
|
|
2014-10-02 19:53:37 +00:00
|
|
|
TESTSDIR= ${TESTSBASE}/usr.sbin/pw
|
|
|
|
|
2014-12-09 23:26:47 +00:00
|
|
|
ATF_TESTS_SH= pw_etcdir \
|
|
|
|
pw_lock \
|
|
|
|
pw_groupdel \
|
|
|
|
pw_groupmod \
|
|
|
|
pw_useradd \
|
|
|
|
pw_userdel \
|
2015-02-09 21:15:52 +00:00
|
|
|
pw_usermod \
|
|
|
|
pw_usernext
|
2014-10-02 19:53:37 +00:00
|
|
|
|
2014-12-09 23:26:47 +00:00
|
|
|
.for tp in ${ATF_TESTS_SH}
|
|
|
|
TEST_METADATA.${tp}+= required_user="root"
|
|
|
|
.endfor
|
2014-11-03 09:26:39 +00:00
|
|
|
|
2014-10-02 19:53:37 +00:00
|
|
|
FILES= group helper_functions.shin master.passwd
|
|
|
|
FILESDIR= ${TESTSDIR}
|
|
|
|
|
2014-11-03 06:07:55 +00:00
|
|
|
ATF_TESTS_SH+= pw_test
|
|
|
|
# - user{add,del} does not exist on FreeBSD; use pw user{add,del} instead
|
|
|
|
# - The command passes on FreeBSD
|
|
|
|
ATF_TESTS_SH_SED_pw_test= -e 's/useradd /pw useradd /'
|
|
|
|
ATF_TESTS_SH_SED_pw_test+= -e 's/userdel /pw userdel /'
|
|
|
|
ATF_TESTS_SH_SED_pw_test+= -e '/atf_expect_fail "PR bin\/39546"/d'
|
|
|
|
ATF_TESTS_SH_SRC_pw_test= t_useradd.sh
|
|
|
|
|
2014-10-02 19:53:37 +00:00
|
|
|
.include <bsd.test.mk>
|