a85f6c3043
Reviewed by: will MFC after: 1 month
16 lines
432 B
Plaintext
Executable File
16 lines
432 B
Plaintext
Executable File
# $FreeBSD$
|
|
|
|
# Workdir to run tests in
|
|
TESTDIR=$(atf_get_srcdir)
|
|
|
|
# Populate the files pw needs to use into $HOME/etc
|
|
populate_etc_skel() {
|
|
cp ${TESTDIR}/master.passwd ${HOME} || \
|
|
atf_fail "Populating master.passwd in ${HOME}"
|
|
cp ${TESTDIR}/group ${HOME} || atf_fail "Populating group in ${HOME}"
|
|
|
|
# Generate the passwd file
|
|
pwd_mkdb -p -d ${HOME} ${HOME}/master.passwd || \
|
|
atf_fail "generate passwd from master.passwd"
|
|
}
|