xref: /freebsd/usr.sbin/pw/tests/Makefile (revision bc96366c864c07ef352edb92017357917c75b36c)
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
16.for tp in ${ATF_TESTS_SH}
17TEST_METADATA.${tp}+=	required_user="root"
18.endfor
19
20FILES=		group helper_functions.shin master.passwd
21FILESDIR=       ${TESTSDIR}
22
23ATF_TESTS_SH+=	pw_test
24# - user{add,del} does not exist on FreeBSD; use pw user{add,del} instead
25# - The command passes on FreeBSD
26ATF_TESTS_SH_SED_pw_test=	-e 's/useradd /pw useradd /'
27ATF_TESTS_SH_SED_pw_test+=	-e 's/userdel /pw userdel /'
28ATF_TESTS_SH_SED_pw_test+=	-e '/atf_expect_fail "PR bin\/39546"/d'
29ATF_TESTS_SH_SRC_pw_test=	t_useradd.sh
30
31.include <bsd.test.mk>
32