Skip to contentSkip to conversation

libtinyxml2: Package needed resources to run ptests

PATCH New Khem Raj 1 participant 1 message Jan 8, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libtinyxml2: Package needed resources to run ptests

ptests require additional xml files to be present on target for tests to work correctly.

---
 meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb +3 -0
index af5a994d22..cece68c632 100644
@@ -19,6 +19,9 @@ CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
 do_install_ptest() {
     install -Dm 0755 ${B}/xmltest ${D}${PTEST_PATH}/xmltest
     install -d ${D}${PTEST_PATH}/resources/out
+    for f in ${S}/resources/*.xml; do
+        install -m 0644 $f ${D}${PTEST_PATH}/resources/
+    done
 }
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0