hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git] / test / units / TEST-74-AUX-UTILS.cgls.sh
blob9268f42baa61c296f0245c8f9ba29c5cf436510b
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -eux
4 set -o pipefail
6 systemd-cgls
7 systemd-cgls --all --full
8 systemd-cgls -k
9 systemd-cgls --xattr=yes
10 systemd-cgls --xattr=no
11 systemd-cgls --cgroup-id=yes
12 systemd-cgls --cgroup-id=no
14 systemd-cgls /system.slice/systemd-journald.service
15 systemd-cgls /system.slice/systemd-journald.service /init.scope
16 systemd-cgls /sys/fs/cgroup/system.slice/systemd-journald.service /init.scope
17 [[ -d /sys/fs/cgroup/init.scope ]] && init_scope="init.scope" || init_scope="systemd/init.scope"
18 (cd "/sys/fs/cgroup/$init_scope" && systemd-cgls)
19 systemd-cgls --unit=systemd-journald.service
20 # There's most likely no user session running, so we need to create one
21 systemd-run --user --wait --pipe -M testuser@.host systemd-cgls --user-unit=app.slice
23 (! systemd-cgls /foo/bar)
24 (! systemd-cgls --unit=hello.world)
25 (! systemd-cgls --user-unit=hello.world)
26 (! systemd-cgls --xattr=foo)
27 (! systemd-cgls --cgroup-id=foo)