]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: on openSUSE install the collection of unit test binaries in the target only...
authorFranck Bui <fbui@suse.com>
Mon, 20 Mar 2023 17:23:33 +0000 (18:23 +0100)
committerFranck Bui <fbui@suse.com>
Fri, 24 Mar 2023 13:10:04 +0000 (14:10 +0100)
test/TEST-02-UNITTESTS/test.sh
test/test-functions

index 80cb82a50d110f650c16ef328e3718624b0c2d9f..3d766db3e744e4ec094e88b11e9dc9c7eca502b4 100755 (executable)
@@ -20,6 +20,13 @@ $KERNEL_APPEND
 # shellcheck source=test/test-functions
 . "${TEST_BASE_DIR:?}/test-functions"
 
+test_append_files() {
+    if get_bool "$LOOKS_LIKE_SUSE"; then
+        dinfo "Install the unit test binaries needed by the TEST-02-UNITTESTS at runtime"
+        inst_recursive "${SOURCE_DIR}/unit-tests"
+    fi
+}
+
 check_result_nspawn() {
     check_result_nspawn_unittests "${1}"
 }
index 472ede1ba0a5be66e9069155e7ecfb165abb222c..fbb35a84ad3343d46de98b2df28edf6c61c1179e 100644 (file)
@@ -1179,17 +1179,8 @@ install_suse_systemd() {
         done < <(rpm -ql "$p")
     done
 
-    # Embed the files needed by the extended testsuite at runtime. Also include
-    # the unit tests needed by TEST-02-UNITTESTS. This is mostly equivalent to
-    # what `ninja install` does for the tests when '-Dinstall-tests=true'.
-    #
-    # Why? openSUSE ships a package named 'systemd-testsuite' which contains
-    # the minimal set of files that allows to run the testsuite on the host (as
-    # long as it runs an equivalent version of systemd) getting rid of the
-    # hassles of fetching, configuring, building the source code.
-    dinfo "Install the files needed by the tests at runtime"
+    dinfo "Install the data needed by the tests at runtime"
     inst_recursive "${SOURCE_DIR}/testdata"
-    inst_recursive "${SOURCE_DIR}/unit-tests"
 
     # On openSUSE, this directory is not created at package install, at least
     # for now.