]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-22-TMPFILES/test-07.sh
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / test / TEST-22-TMPFILES / test-07.sh
CommitLineData
bd0ce244
LP
1#! /bin/bash
2#
3# Verifies the issues described by https://github.com/systemd/systemd/issues/10191
4#
5
6set -e
7set -x
8
9rm -rf /tmp/test-prefix
10
11mkdir /tmp/test-prefix
12touch /tmp/test-prefix/file
13
14systemd-tmpfiles --remove - <<EOF
15r /tmp/test-prefix
16r /tmp/test-prefix/file
17EOF
18
19! test -f /tmp/test-prefix/file
20! test -f /tmp/test-prefix
21
22mkdir /tmp/test-prefix
23touch /tmp/test-prefix/file
24
25systemd-tmpfiles --remove - <<EOF
26r /tmp/test-prefix/file
27r /tmp/test-prefix
28EOF
29
30! test -f /tmp/test-prefix/file
31! test -f /tmp/test-prefix