diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-03-23 03:28:24 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-03-23 03:28:24 +0000 |
commit | a5efa210b291630d838878b8d5e7d2ab0bf8b384 (patch) | |
tree | 395dd27057c93ec6f91809efc770f39fd526bf9e /pw/tests/pw_config_test.sh | |
parent | e9b9941bd76fcfbac2d1898de8f05cd48d8468ed (diff) | |
download | pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.tar.gz pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.tar.zst pw-darwin-a5efa210b291630d838878b8d5e7d2ab0bf8b384.zip |
Rename tests from <foo> to <foo>_test to match the FreeBSD test suite
naming scheme
usr.bin/diff/diff_test was renamed to usr.bin/diff/netbsd_diff_test
to avoid collisions with the renamed FreeBSD test.
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Diffstat (limited to 'pw/tests/pw_config_test.sh')
-rwxr-xr-x | pw/tests/pw_config_test.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pw/tests/pw_config_test.sh b/pw/tests/pw_config_test.sh new file mode 100755 index 0000000..fb6489a --- /dev/null +++ b/pw/tests/pw_config_test.sh @@ -0,0 +1,26 @@ +# $FreeBSD$ + +# Import helper functions +. $(atf_get_srcdir)/helper_functions.shin + +atf_test_case generate_config +generate_config_body() { + atf_check -s exit:0 \ + ${PW} useradd -D -C ${HOME}/foo.conf + atf_check -o file:$(atf_get_srcdir)/pw.conf \ + cat ${HOME}/foo.conf +} + +atf_test_case modify_config_uid_gid_boundaries +modify_config_uid_gid_boundaries_body() { + atf_check -s exit:0 \ + ${PW} useradd -D -C ${HOME}/foo.conf \ + -u 2000,5000 -i 2100,6000 + atf_check -o file:$(atf_get_srcdir)/pw-modified.conf \ + cat ${HOME}/foo.conf +} + +atf_init_test_cases() { + atf_add_test_case generate_config + atf_add_test_case modify_config_uid_gid_boundaries +} |