summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2022-11-03 15:11:01 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2022-11-03 15:12:15 +0000
commit76ad8ef68d155d8ef4fc5bb59499dc95e39b9dfb (patch)
tree4d7be99db32266bd6fa4165998a28620d2228cfe /test
parent4ae3e8c9dbd8aa25c404eb47e4e1962fe9b03c78 (diff)
downloadsystemd-76ad8ef68d155d8ef4fc5bb59499dc95e39b9dfb.tar.gz
test-sysusers: check group creation with matching user entry
Diffstat (limited to 'test')
-rw-r--r--test/test-sysusers/test-15.expected-group1
-rw-r--r--test/test-sysusers/test-15.expected-passwd1
-rw-r--r--test/test-sysusers/test-15.initial-passwd1
-rw-r--r--test/test-sysusers/test-15.input5
4 files changed, 8 insertions, 0 deletions
diff --git a/test/test-sysusers/test-15.expected-group b/test/test-sysusers/test-15.expected-group
new file mode 100644
index 0000000000..1dbf9013ee
--- /dev/null
+++ b/test/test-sysusers/test-15.expected-group
@@ -0,0 +1 @@
+root:x:0:
diff --git a/test/test-sysusers/test-15.expected-passwd b/test/test-sysusers/test-15.expected-passwd
new file mode 100644
index 0000000000..a880bd497f
--- /dev/null
+++ b/test/test-sysusers/test-15.expected-passwd
@@ -0,0 +1 @@
+root::0:0::/root:/bin/sh
diff --git a/test/test-sysusers/test-15.initial-passwd b/test/test-sysusers/test-15.initial-passwd
new file mode 100644
index 0000000000..a880bd497f
--- /dev/null
+++ b/test/test-sysusers/test-15.initial-passwd
@@ -0,0 +1 @@
+root::0:0::/root:/bin/sh
diff --git a/test/test-sysusers/test-15.input b/test/test-sysusers/test-15.input
new file mode 100644
index 0000000000..cc46672e7f
--- /dev/null
+++ b/test/test-sysusers/test-15.input
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+# Create proper group when matching user entry is in place.
+#
+#Type Name ID GECOS HOMEDIR
+u root 0 "Super User" /root