From 78e9bb837c258ac0ec7712b3d612cc2f407e731e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:42 +0200 Subject: Merging upstream version 256. Signed-off-by: Daniel Baumann --- test/units/testsuite-74.delta.sh | 59 ---------------------------------------- 1 file changed, 59 deletions(-) delete mode 100755 test/units/testsuite-74.delta.sh (limited to 'test/units/testsuite-74.delta.sh') diff --git a/test/units/testsuite-74.delta.sh b/test/units/testsuite-74.delta.sh deleted file mode 100755 index a0e1cb5..0000000 --- a/test/units/testsuite-74.delta.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: LGPL-2.1-or-later -set -eux -set -o pipefail - -at_exit() { - rm -rfv /{run,etc}/systemd/system/delta-test* -} - -trap at_exit EXIT - -# Create a couple of supporting units with overrides -# -# Extended unit -cat >"/run/systemd/system/delta-test-unit-extended.service" <"/run/systemd/system/delta-test-unit-extended.service.d/override.conf" <>/etc/systemd/system/delta-test-unit-overridden.service -# Overridden but equivalent unit -ln -srfv /run/systemd/system/delta-test-unit-extended.service /run/systemd/system/delta-test-unit-equivalent.service -ln -sfv /run/systemd/system/delta-test-unit-extended.service /etc/systemd/system/delta-test-unit-equivalent.service -# Redirected unit -ln -srfv /run/systemd/system/delta-test-unit-extended.service /run/systemd/system/delta-test-unit-redirected.service -ln -sfv /run/systemd/system/delta-test-unit-overidden.service /etc/systemd/system/delta-test-unit-extended.service - -systemctl daemon-reload - -systemd-delta -systemd-delta /run -systemd-delta systemd/system -systemd-delta /run systemd/system /run -systemd-delta /run foo/bar hello/world systemd/system /run -systemd-delta foo/bar -systemd-delta --diff=true -systemd-delta --diff=false - -for type in masked equivalent redirected overridden extended unchanged; do - systemd-delta --type="$type" - systemd-delta --type="$type" /run -done -systemd-delta --type=equivalent,redirected - -(! systemd-delta --diff=foo) -(! systemd-delta --type=foo) -(! systemd-delta --type=equivalent,redirected,foo) -- cgit v1.2.3