]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-supplementarygroups-multiple-groups-default-group-user.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for Supplementary Group with multiple groups without Group and User
4
5 [Service]
6 ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "%G" && HAVE=1; done; test "$$HAVE" -eq 1'
7 ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
8 ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
9 ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
10 ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "%G" && test "$$(id -u)" = "%U"'
11 Type=oneshot
12 SupplementaryGroups=1 2 3