hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git] / test / units / TEST-07-PID1.exec-timestamps.sh
blob0211166ae3c3883b7e581b47546779353be30502
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -eux
4 set -o pipefail
6 # Check that timestamps of a Type=notify service are consistent
8 systemd-run --service-type notify --property NotifyAccess=all --unit notify.service --wait sh -c 'systemd-notify --ready; exit 1' || :
10 start=$(systemctl show --property=ExecMainStartTimestampMonotonic --value notify.service)
11 handoff=$(systemctl show --property=ExecMainHandoffTimestampMonotonic --value notify.service)
12 active=$(systemctl show --property=ActiveEnterTimestampMonotonic --value notify.service)
13 exit=$(systemctl show --property=ExecMainExitTimestampMonotonic --value notify.service)
15 [[ $start -le $handoff ]]
16 [[ $handoff -le $active ]]
17 [[ $active -le $exit ]]