summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc
diff options
context:
space:
mode:
authorCarlos Rafael Giani <crg7475@mailbox.org>2020-01-12 14:59:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:08 +0000
commit01c1f63bdb779fe33df4b4409792f393eeee7cf9 (patch)
treef29f23b2fdfd3545298639c8d3403fd1c241a274 /meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc
parent31e5bc2b586c51ad3b9fdb79af8b549d8d7ce743 (diff)
downloadpoky-01c1f63bdb779fe33df4b4409792f393eeee7cf9.tar.gz
gstreamer: Add common .inc files for meson based recipes
* gstreamer1.0-plugins-common.inc The old gstreamer1.0-plugins.inc file, adapted for meson * gstreamer1.0-plugins-packaging.inc The old gst-plugins-package.inc file, adapted for meson * gstreamer1.0-ptest.inc Common code for meson based PTest support; autogenerates the run-ptest file and is designed to use the gnome-desktop-testing suite runner (which is why the .inc files inherits from ptest-gnome) (From OE-Core rev: 075aa7a617d38d6a698cee97dcb7550e72741eb5) Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc
new file mode 100644
index 0000000000..74368c4cd8
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc
@@ -0,0 +1,21 @@
1inherit ptest-gnome
2
3TEST_FILES_PATH = "${datadir}/installed-tests/gstreamer-1.0/test-files"
4RUN_PTEST_FILE = "${D}${PTEST_PATH}/run-ptest"
5
6EXTRA_OEMESON += "-Dtest-files-path=${TEST_FILES_PATH}"
7
8# Using do_install_ptest_base instead of do_install_ptest, since
9# the default do_install_ptest_base is hardcoded to expect Makefiles.
10do_install_ptest_base() {
11 # Generate run-ptest file
12 echo "#!/usr/bin/env sh" > "${RUN_PTEST_FILE}"
13 echo "gnome-desktop-testing-runner ${GST_TEST_SUITE_NAME}" >> "${RUN_PTEST_FILE}"
14 chmod 0755 "${RUN_PTEST_FILE}"
15
16 # Install additional files required by tests
17 if [ -d "${S}/tests/files" ] ; then
18 install -d "${D}/${TEST_FILES_PATH}"
19 install -m 0644 "${S}/tests/files"/* "${D}/${TEST_FILES_PATH}"
20 fi
21}