summaryrefslogtreecommitdiff
path: root/test/test-execute
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-10-14 10:32:27 +0200
committerDjalal Harouni <tixxdz@opendz.org>2016-10-23 23:27:14 +0200
commit86b838eaa36814f1a9c02f3289328cd0ec42d1ff (patch)
tree9ffc1486455fd986874c4988a544701be149afbd /test/test-execute
parent4d885bd326d958827d926512ecc5e0d21f6ad76b (diff)
test: Add simple test for supplementary groups
Diffstat (limited to 'test/test-execute')
-rw-r--r--test/test-execute/exec-supplementarygroups.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-execute/exec-supplementarygroups.service b/test/test-execute/exec-supplementarygroups.service
new file mode 100644
index 0000000000..43a9a981f2
--- /dev/null
+++ b/test/test-execute/exec-supplementarygroups.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Test for Supplementary Group
+
+[Service]
+ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "0 1"'
+Type=oneshot
+SupplementaryGroups=1