diff --git a/slices/adduser.yaml b/slices/adduser.yaml new file mode 100644 index 000000000..3536320b5 --- /dev/null +++ b/slices/adduser.yaml @@ -0,0 +1,35 @@ +package: adduser + +essential: + - adduser_copyright + +slices: + bins: + essential: + - adduser_config + - adduser_modules + - bsdutils_bins + - libperl5.38t64_system-utils + - passwd_bins + - perl-base_bins + - perl-base_modules + contents: + /usr/sbin/addgroup: + /usr/sbin/adduser: + /usr/sbin/delgroup: + /usr/sbin/deluser: + + modules: + contents: + /usr/share/perl5/Debian/AdduserCommon.pm: + /usr/share/perl5/Debian/AdduserLogging.pm: + /usr/share/perl5/Debian/AdduserRetvalues.pm: + + config: + contents: + /etc/adduser.conf: + /etc/deluser.conf: + + copyright: + contents: + /usr/share/doc/adduser/copyright: diff --git a/tests/spread/integration/adduser/task.yaml b/tests/spread/integration/adduser/task.yaml new file mode 100644 index 000000000..1982f5d76 --- /dev/null +++ b/tests/spread/integration/adduser/task.yaml @@ -0,0 +1,10 @@ +summary: Integration tests for adduser + +execute: | + rootfs="$(install-slices base-files_base adduser_bins)" + + chroot "$rootfs" test -f /etc/passwd + chroot "$rootfs" adduser --quiet --system testuser + chroot "$rootfs" grep testuser /etc/passwd + chroot "$rootfs" deluser --quiet testuser + chroot "$rootfs" grep -v testuser /etc/passwd