summaryrefslogtreecommitdiffstats
path: root/test/TEST-01-BASIC
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2020-11-18 15:39:50 +0100
committerDan Streetman <ddstreet@canonical.com>2021-01-26 23:38:23 +0100
commit59b8cb3c45c1975e015680193c02cfb62bdb8bd5 (patch)
tree80d1e66f081c1ee347dcc501548a01b44ef73e72 /test/TEST-01-BASIC
parenttest/run-integration-tests.sh: adjust arg processing (diff)
downloadsystemd-59b8cb3c45c1975e015680193c02cfb62bdb8bd5.tar.xz
systemd-59b8cb3c45c1975e015680193c02cfb62bdb8bd5.zip
test/TEST-01-BASIC: also install testsuite.target
This test doesn't require the tests to be installed, so it must manually install required test services and targets itself, including the default target of testsuite.target Also use $TEST_UNITS_DIR which is set by test-functions instead of calculating the path
Diffstat (limited to 'test/TEST-01-BASIC')
-rwxr-xr-xtest/TEST-01-BASIC/test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index 606b0dbfaf..66c35fe2b7 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -9,8 +9,9 @@ TEST_REQUIRE_INSTALL_TESTS=0
test_append_files() {
# install tests manually so the test is functional even when -Dinstall-tests=false
- mkdir -p $1/usr/lib/systemd/tests/testdata/units/
- cp -v $(dirname $0)/../units/{testsuite-01,end}.service $1/usr/lib/systemd/tests/testdata/units/
+ local dst="$1/usr/lib/systemd/tests/testdata/units/"
+ mkdir -p "$dst"
+ cp -v $TEST_UNITS_DIR/{testsuite-01,end}.service $TEST_UNITS_DIR/testsuite.target "$dst"
}
do_test "$@" 01