From c0b97b0fc81b759f7b0ad665ef33aa2361aa23c5 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 10 Dec 2019 13:32:20 +0100 Subject: test: move TEST-22-TMPFILES setup to static files --- test/TEST-22-TMPFILES/run-tmpfiles-tests.sh | 13 -- test/TEST-22-TMPFILES/test-01.sh | 13 -- test/TEST-22-TMPFILES/test-02.sh | 122 -------------- test/TEST-22-TMPFILES/test-03.sh | 236 ---------------------------- test/TEST-22-TMPFILES/test-04.sh | 44 ------ test/TEST-22-TMPFILES/test-05.sh | 45 ------ test/TEST-22-TMPFILES/test-06.sh | 38 ----- test/TEST-22-TMPFILES/test-07.sh | 31 ---- test/TEST-22-TMPFILES/test-08.sh | 32 ---- test/TEST-22-TMPFILES/test-09.sh | 59 ------- test/TEST-22-TMPFILES/test.sh | 16 +- test/TEST-22-TMPFILES/testsuite.service | 12 -- 12 files changed, 1 insertion(+), 660 deletions(-) delete mode 100755 test/TEST-22-TMPFILES/run-tmpfiles-tests.sh delete mode 100755 test/TEST-22-TMPFILES/test-01.sh delete mode 100755 test/TEST-22-TMPFILES/test-02.sh delete mode 100755 test/TEST-22-TMPFILES/test-03.sh delete mode 100755 test/TEST-22-TMPFILES/test-04.sh delete mode 100755 test/TEST-22-TMPFILES/test-05.sh delete mode 100755 test/TEST-22-TMPFILES/test-06.sh delete mode 100755 test/TEST-22-TMPFILES/test-07.sh delete mode 100755 test/TEST-22-TMPFILES/test-08.sh delete mode 100755 test/TEST-22-TMPFILES/test-09.sh delete mode 100644 test/TEST-22-TMPFILES/testsuite.service (limited to 'test/TEST-22-TMPFILES') diff --git a/test/TEST-22-TMPFILES/run-tmpfiles-tests.sh b/test/TEST-22-TMPFILES/run-tmpfiles-tests.sh deleted file mode 100755 index a0158f0421..0000000000 --- a/test/TEST-22-TMPFILES/run-tmpfiles-tests.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -set -x -set -e - ->/failed - -for t in test-*.sh; do - echo "Running $t"; ./$t -done - -touch /testok -rm /failed diff --git a/test/TEST-22-TMPFILES/test-01.sh b/test/TEST-22-TMPFILES/test-01.sh deleted file mode 100755 index d233e37fb2..0000000000 --- a/test/TEST-22-TMPFILES/test-01.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash -# -# With "e" don't attempt to set permissions when file doesn't exist, see -# https://github.com/systemd/systemd/pull/6682. -# - -set -e - -rm -fr /tmp/test - -echo "e /tmp/test - root root 1d" | systemd-tmpfiles --create - - -! test -e /tmp/test diff --git a/test/TEST-22-TMPFILES/test-02.sh b/test/TEST-22-TMPFILES/test-02.sh deleted file mode 100755 index d1bf1ea04b..0000000000 --- a/test/TEST-22-TMPFILES/test-02.sh +++ /dev/null @@ -1,122 +0,0 @@ -#! /bin/bash -# -# Basic tests for types creating directories -# - -set -e -set -x - -rm -fr /tmp/{C,d,D,e} -mkdir /tmp/{C,d,D,e} - -# -# 'd' -# -mkdir /tmp/d/2 -chmod 777 /tmp/d/2 - -systemd-tmpfiles --create - </tmp/F/truncated -echo "This should be truncated" >/tmp/F/truncated-with-content - -systemd-tmpfiles --create - </tmp/F/rw-fs/foo -! systemd-tmpfiles --create - </tmp/F/rw-fs/foo -! systemd-tmpfiles --create - < fails. -! systemd-tmpfiles --create - <