]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-22-TMPFILES/test-01.sh
test: add tests for systemd-tmpfiles
[thirdparty/systemd.git] / test / TEST-22-TMPFILES / test-01.sh
1 #! /bin/bash
2 #
3 # With "e" don't attempt to set permissions when file doesn't exist, see
4 # https://github.com/systemd/systemd/pull/6682.
5 #
6
7 set -e
8
9 rm -fr /tmp/test
10
11 echo "e /tmp/test - root root 1d" | systemd-tmpfiles --create -
12
13 ! test -e /tmp/test