summaryrefslogtreecommitdiffstats
path: root/meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend
diff options
context:
space:
mode:
authorQiu Tingting <qiutt@fujitsu.com>2023-08-23 10:35:21 +0800
committerQiu Tingting <qiutt@fujitsu.com>2023-08-23 10:35:21 +0800
commite377ee5b8bf34061b633f5d14ea7f704b20b5c26 (patch)
tree7fa8073d1429b46324f54792b36fda8b6cb56f0f /meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend
parent60da3c638ed66e0edae864d1176cafed919fb1fa (diff)
fontconfig: Add ptest support
Add a ptest for fontconfig. It is a backport for https://lists.openembedded.org/g/openembedded-core/topic/meta_oe_patch_v1/100753708 It should be deleted after yocto version up. SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: Icfc3e3b4503000c02c2156f20bc8dc9ae3cbfa5b
Diffstat (limited to 'meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend')
-rw-r--r--meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend b/meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend
new file mode 100644
index 00000000..dd00646a
--- /dev/null
+++ b/meta-agl-test/recipes-graphics/fontconfig/fontconfig_2.13.1.bbappend
@@ -0,0 +1,24 @@
+# Add ptest support
+# backport of yocto
+#
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+SRC_URI += " \
+ file://run-ptest \
+ file://ptest.patch \
+"
+
+inherit ptest
+
+do_install_ptest() {
+ install ${S}/test-driver ${D}${PTEST_PATH}/
+
+ install -d ${D}${PTEST_PATH}/test/
+ find ${B}/test/.libs/ -type f -not -name "test-migration" \
+ -exec install {} ${D}${PTEST_PATH}/test/ \;
+ install ${S}/test/*.pcf ${D}${PTEST_PATH}/test
+
+ # update PTEST_PATH in run-ptest
+ sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest
+}
+