blob: 1283ff2a7d27996ca0690b0091a80af94eb99cf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $FreeBSD$
TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.sbin/useradd
.PATH: ${TESTSRC}
TESTSDIR= ${TESTSBASE}/usr.sbin/pw
ATF_TESTS_SH= pw_etcdir \
pw_lock \
pw_groupdel \
pw_groupmod \
pw_useradd \
pw_userdel \
pw_usermod
.for tp in ${ATF_TESTS_SH}
TEST_METADATA.${tp}+= required_user="root"
.endfor
FILES= group helper_functions.shin master.passwd
FILESDIR= ${TESTSDIR}
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
.include <bsd.test.mk>
|