From: Frantisek Sumsal Date: Tue, 16 May 2023 18:41:35 +0000 (+0200) Subject: test: merge TEST-48-START-STOP-NO-RELOAD into TEST-23-UNIT-FILE X-Git-Tag: v254-rc1~459^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16eb5687662091a5a8c7ca7e22b176449d6c1099;p=thirdparty%2Fsystemd.git test: merge TEST-48-START-STOP-NO-RELOAD into TEST-23-UNIT-FILE --- diff --git a/test/TEST-48-START-STOP-NO-RELOAD/Makefile b/test/TEST-48-START-STOP-NO-RELOAD/Makefile deleted file mode 120000 index e9f93b1104c..00000000000 --- a/test/TEST-48-START-STOP-NO-RELOAD/Makefile +++ /dev/null @@ -1 +0,0 @@ -../TEST-01-BASIC/Makefile \ No newline at end of file diff --git a/test/TEST-48-START-STOP-NO-RELOAD/test.sh b/test/TEST-48-START-STOP-NO-RELOAD/test.sh deleted file mode 100755 index 0bece7d5b53..00000000000 --- a/test/TEST-48-START-STOP-NO-RELOAD/test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: LGPL-2.1-or-later -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh -set -e - -TEST_DESCRIPTION="test StartStopNoReload" - -# shellcheck source=test/test-functions -. "${TEST_BASE_DIR:?}/test-functions" - -do_test "$@" diff --git a/test/units/testsuite-48.sh b/test/units/testsuite-23.start-stop-no-reload.sh similarity index 52% rename from test/units/testsuite-48.sh rename to test/units/testsuite-23.start-stop-no-reload.sh index 2b5b86f6e8b..9c4f17d7a29 100755 --- a/test/units/testsuite-48.sh +++ b/test/units/testsuite-23.start-stop-no-reload.sh @@ -3,44 +3,55 @@ # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh set -eux +set -o pipefail -cat >/run/systemd/system/testservice-48.target </run/systemd/system/testsuite-23-no-reload.target </run/systemd/system/testservice-48.service </run/systemd/system/testsuite-23-no-reload.service </run/systemd/system/testservice-48.service </run/systemd/system/testsuite-23-no-reload.service </run/systemd/system/testservice-48.target </run/systemd/system/testsuite-23-no-reload.target </run/systemd/system/testservice-48.service </run/systemd/system/testsuite-23-no-reload.service </testok +systemctl restart testsuite-23-no-reload.target -exit 0 +systemctl is-active testsuite-23-no-reload.service diff --git a/test/units/testsuite-48.service b/test/units/testsuite-48.service deleted file mode 100644 index 74769563e31..00000000000 --- a/test/units/testsuite-48.service +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=TEST-48-START-STOP-NO-RELOAD - -[Service] -ExecStartPre=rm -f /failed /testok -ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh -Type=oneshot