Aníbal Limón | 6be6a27 | 2017-12-05 18:18:39 -0600 | [diff] [blame] | 1 | metadata: |
| 2 | format: Lava-Test Test Definition 1.0 |
| 3 | name: gst-validate |
| 4 | description: "A suite of tools to run integration tests for Gstreamer, |
| 5 | For more information: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-validate/html/" |
| 6 | maintainer: |
| 7 | - anibal.limon@linaro.org |
| 8 | os: |
| 9 | - openembedded |
| 10 | scope: |
| 11 | - functional |
| 12 | devices: |
| 13 | - dragonboard410c |
| 14 | |
| 15 | # MAIN_DIR: |
| 16 | # * Directory where gst-validate will run, needs to contain gst-integration-testsuites, |
| 17 | # https://cgit.freedesktop.org/gstreamer/gst-integration-testsuites |
| 18 | # OPTIONS: |
| 19 | # * -nd: To execute without display attached required Xvfb |
| 20 | # * -v: Verbose mode |
| 21 | # * -j: To execute only one job a time, avoid OOM |
Aníbal Limón | 285b2e3 | 2018-02-06 15:13:38 -0600 | [diff] [blame] | 22 | # GST_INTEGRATION_SUITES: |
| 23 | # * URL with the tarball of Gstreamer integration suites (cases, media), |
| 24 | # https://github.com/GStreamer/gst-integration-testsuites |
Aníbal Limón | 6be6a27 | 2017-12-05 18:18:39 -0600 | [diff] [blame] | 25 | params: |
| 26 | MAIN_DIR: "/gst-validate" |
| 27 | OPTIONS: "-nd -v -j 1" |
Aníbal Limón | 285b2e3 | 2018-02-06 15:13:38 -0600 | [diff] [blame] | 28 | GST_INTEGRATION_SUITES: "http://testdata.validation.linaro.org/gst-validate/gst-integration-testsuites_1.12.tar.gz" |
Aníbal Limón | b02c865 | 2018-05-09 15:27:49 -0500 | [diff] [blame] | 29 | GST_IGNORE_TESTS_REPO: "" |
| 30 | GST_IGNORE_TESTS_BRANCH: "master" |
| 31 | GST_IGNORE_TESTS_FILE: "" |
Aníbal Limón | 6be6a27 | 2017-12-05 18:18:39 -0600 | [diff] [blame] | 32 | |
| 33 | run: |
| 34 | steps: |
Aníbal Limón | b02c865 | 2018-05-09 15:27:49 -0500 | [diff] [blame] | 35 | - . ./automated/lib/sh-test-lib |
| 36 | - cd ./automated/linux/gst-validate |
Aníbal Limón | 285b2e3 | 2018-02-06 15:13:38 -0600 | [diff] [blame] | 37 | - wget ${GST_INTEGRATION_SUITES} |
| 38 | - tar -xzf $(basename ${GST_INTEGRATION_SUITES}) -C / |
Aníbal Limón | b02c865 | 2018-05-09 15:27:49 -0500 | [diff] [blame] | 39 | - IGNORE_FILE="" |
| 40 | - if [ ! -z "${GST_IGNORE_TESTS_REPO}" ] && [ ! -z "${GST_IGNORE_TESTS_FILE}" ]; then |
| 41 | - repo_path=${PWD}/$(basename ${GST_IGNORE_TESTS_REPO}) |
| 42 | - git clone -b ${GST_IGNORE_TESTS_BRANCH} ${GST_IGNORE_TESTS_REPO} $repo_path |
| 43 | - IGNORE_FILE=${repo_path}/${GST_IGNORE_TESTS_FILE} |
| 44 | - fi |
Aníbal Limón | b011677 | 2018-05-11 12:19:59 -0500 | [diff] [blame] | 45 | - gst-validate-launcher -M ${MAIN_DIR} ${OPTIONS} > ./gst-validate-raw.log || true |
Aníbal Limón | b02c865 | 2018-05-09 15:27:49 -0500 | [diff] [blame] | 46 | - ./gst_validate_lava_parse.py ./gst-validate-raw.log ${IGNORE_FILE} > ./result.txt |
| 47 | - ../../utils/send-to-lava.sh ./result.txt |