summaryrefslogtreecommitdiffstats
path: root/debian/tests/smoke
blob: 69bbfb0c947bf54d8ec40dc627fbae4f6c26122f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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