Date: Mon, 3 Nov 2014 06:07:55 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274011 - head/usr.sbin/pw/tests Message-ID: <201411030607.sA367tbj089368@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Nov 3 06:07:55 2014 New Revision: 274011 URL: https://svnweb.freebsd.org/changeset/base/274011 Log: Integrate usr.sbin/useradd/t_useradd.sh from NetBSD into FreeBSD as pw_test - Suffix useradd/userdel commands with pw - Remove the atf_expect_fail for bin/39546 Phabric: D921 Reviewed by: brd Sponsored by: EMC / Isilon Storage Division Modified: head/usr.sbin/pw/tests/Makefile Modified: head/usr.sbin/pw/tests/Makefile ============================================================================== --- head/usr.sbin/pw/tests/Makefile Mon Nov 3 05:36:35 2014 (r274010) +++ head/usr.sbin/pw/tests/Makefile Mon Nov 3 06:07:55 2014 (r274011) @@ -1,5 +1,8 @@ # $FreeBSD$ +TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.sbin/useradd +.PATH: ${TESTSRC} + TESTSDIR= ${TESTSBASE}/usr.sbin/pw ATF_TESTS_SH= pw_delete pw_modify @@ -7,4 +10,12 @@ ATF_TESTS_SH= pw_delete pw_modify 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411030607.sA367tbj089368>