xref: /freebsd/usr.sbin/pw/tests/Makefile (revision 4b63a7c678a1291c8056de3770cfa393773b1f94)
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_delete pw_modify
9
10TEST_METADATA.pw_delete+=	required_user="root"
11TEST_METADATA.pw_modify+=	required_user="root"
12
13FILES=		group helper_functions.shin master.passwd
14FILESDIR=       ${TESTSDIR}
15
16ATF_TESTS_SH+=	pw_test
17# - user{add,del} does not exist on FreeBSD; use pw user{add,del} instead
18# - The command passes on FreeBSD
19ATF_TESTS_SH_SED_pw_test=	-e 's/useradd /pw useradd /'
20ATF_TESTS_SH_SED_pw_test+=	-e 's/userdel /pw userdel /'
21ATF_TESTS_SH_SED_pw_test+=	-e '/atf_expect_fail "PR bin\/39546"/d'
22ATF_TESTS_SH_SRC_pw_test=	t_useradd.sh
23
24.include <bsd.test.mk>
25