diff options
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc b/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc new file mode 100644 index 000000000..74368c4cd --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | inherit ptest-gnome | ||
| 2 | |||
| 3 | TEST_FILES_PATH = "${datadir}/installed-tests/gstreamer-1.0/test-files" | ||
| 4 | RUN_PTEST_FILE = "${D}${PTEST_PATH}/run-ptest" | ||
| 5 | |||
| 6 | EXTRA_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. | ||
| 10 | do_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 | } | ||
