Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | GST_TEST_SUITE_NAME ?= "gstreamer-1.0" |
| 9 | |
| 10 | # Using do_install_ptest_base instead of do_install_ptest, since |
| 11 | # the default do_install_ptest_base is hardcoded to expect Makefiles. |
| 12 | do_install_ptest_base() { |
| 13 | # Generate run-ptest file |
| 14 | echo "#!/usr/bin/env sh" > "${RUN_PTEST_FILE}" |
| 15 | echo "gnome-desktop-testing-runner ${GST_TEST_SUITE_NAME}" >> "${RUN_PTEST_FILE}" |
| 16 | chmod 0755 "${RUN_PTEST_FILE}" |
| 17 | |
| 18 | # Install additional files required by tests |
| 19 | if [ -d "${S}/tests/files" ] ; then |
| 20 | install -d "${D}/${TEST_FILES_PATH}" |
| 21 | install -m 0644 "${S}/tests/files"/* "${D}/${TEST_FILES_PATH}" |
| 22 | fi |
| 23 | } |