diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:54:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:54:38 +0000 |
commit | 6cfae0f7454977a2a1171b25e82cef512c14e156 (patch) | |
tree | 67cc236679251beaf5e95d9bc5a6a69b745202d0 /debian/tests/smoke | |
parent | Adding upstream version 1:4.13+dfsg1. (diff) | |
download | shadow-6cfae0f7454977a2a1171b25e82cef512c14e156.tar.xz shadow-6cfae0f7454977a2a1171b25e82cef512c14e156.zip |
Adding debian version 1:4.13+dfsg1-1.debian/1%4.13+dfsg1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/smoke')
-rwxr-xr-x | debian/tests/smoke | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/smoke b/debian/tests/smoke new file mode 100755 index 0000000..69bbfb0 --- /dev/null +++ b/debian/tests/smoke @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +echo "Adding an user works" +useradd shadow-test-user +grep '^shadow-test-user:x:' /etc/passwd +grep '^shadow-test-user:!:' /etc/shadow + +echo "Removing an user works" +userdel shadow-test-user +! grep 'shadow-test-user' /etc/passwd +! grep 'shadow-test-user' /etc/shadow |