test: add more tests for SupplementaryGroups=

This commit is contained in:
Djalal Harouni
2016-10-23 23:27:16 +02:00
parent 86b838eaa3
commit bf9ace96fc
4 changed files with 21 additions and 0 deletions
@@ -0,0 +1,9 @@
[Unit]
Description=Test for Supplementary Group with only one group and uid 1
[Service]
ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
Type=oneshot
User=1
Group=1
SupplementaryGroups=1
@@ -0,0 +1,8 @@
[Unit]
Description=Test for Supplementary Group with only one group
[Service]
ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "0"'
Type=oneshot
Group=1
SupplementaryGroups=1