Page MenuHomeFreeBSD

Integrate tests/usr.sbin/useradd from NetBSD into atf/kyua at usr.sbin/pw/tests
ClosedPublic

Authored by ngie on Oct 9 2014, 1:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 12, 12:29 AM
Unknown Object (File)
Jan 17 2026, 4:22 PM
Unknown Object (File)
Dec 20 2025, 2:19 PM
Unknown Object (File)
Nov 25 2025, 6:19 AM
Unknown Object (File)
Nov 21 2025, 10:24 AM
Unknown Object (File)
Nov 21 2025, 10:12 AM
Unknown Object (File)
Nov 21 2025, 10:07 AM
Unknown Object (File)
Nov 14 2025, 1:58 PM
Subscribers

Details

Reviewers
brd
ngie
Summary

Integrate tests/usr.sbin/useradd from NetBSD into atf/kyua at usr.sbin/pw/tests

In collaboration with: sjg
Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ngie retitled this revision from to Integrate tests/usr.sbin/useradd from NetBSD into atf/kyua at usr.sbin/pw/tests.
ngie updated this object.
ngie added a reviewer: brd.
ngie added a subscriber: jmmv.

FreeBSD does support `pw useradd foo', so the sed stuff is not needed.

Please add the files you are going to import that include the tests from NetBSD.

In D921#4, @brd wrote:

FreeBSD does support `pw useradd foo', so the sed stuff is not needed.

It is because the useradd command doesn't exist on FreeBSD:

$ command -p useradd                                                                                                                                                        
-bash: useradd: command not found
$ uname -a
FreeBSD fuji-stable-10.local 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #1 f2b9523(stable/10): Sat Oct 18 15:06:02 PDT 2014     ngie@fuji-stable-10.local:/usr/obj/usr/src/sys/FUJI  amd64

Please add the files you are going to import that include the tests from NetBSD.

Sure! It's already committed to svn: https://svnweb.freebsd.org/base/head/contrib/netbsd-tests/usr.sbin/useradd/t_useradd.sh?revision=272458&view=markup

Oh, I misunderstood.

Looks good.

ngie added a reviewer: ngie.

Committed in r274011 -- thanks!

This revision is now accepted and ready to land.Nov 8 2014, 7:09 PM