summaryrefslogtreecommitdiffstats
path: root/test/TEST-01-BASIC
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2021-01-06 22:42:28 +0100
committerLuca Boccassi <bluca@debian.org>2021-01-24 14:07:39 +0100
commitd9e606e89f3ee47db28f6cc7829a0cadc53983c8 (patch)
tree4b9d63296d88ec7da79165e559489750ae09a018 /test/TEST-01-BASIC
parenttest: note where the bionic-* CI tool/integration lives (diff)
downloadsystemd-d9e606e89f3ee47db28f6cc7829a0cadc53983c8.tar.xz
systemd-d9e606e89f3ee47db28f6cc7829a0cadc53983c8.zip
tests: build the image once and then copy/extend it
Building custom images for each test takes a lot of time. Build the default one, and if the test needs incompatible changes just copy it and extend it instead.
Diffstat (limited to 'test/TEST-01-BASIC')
-rwxr-xr-xtest/TEST-01-BASIC/test.sh17
1 files changed, 4 insertions, 13 deletions
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index 58ad6f8fd2..606b0dbfaf 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -7,19 +7,10 @@ TEST_REQUIRE_INSTALL_TESTS=0
. $TEST_BASE_DIR/test-functions
-test_create_image() {
- create_empty_image_rootdir
-
- # Create what will eventually be our root filesystem onto an overlay
- (
- LOG_LEVEL=5
- setup_basic_environment
- mask_supporting_services
-
- # install tests manually so the test is functional even when -Dinstall-tests=false
- mkdir -p $initdir/usr/lib/systemd/tests/testdata/units/
- cp -v $(dirname $0)/../units/{testsuite-01,end}.service $initdir/usr/lib/systemd/tests/testdata/units/
- )
+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/
}
do_test "$@" 01