blob: 75dfe77d33bf07c540b18b6a91aabb472b12ac0a [file] [log] [blame]
Aníbal Limón6be6a272017-12-05 18:18:39 -06001metadata:
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ón285b2e32018-02-06 15:13:38 -060022# 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ón6be6a272017-12-05 18:18:39 -060025params:
26 MAIN_DIR: "/gst-validate"
27 OPTIONS: "-nd -v -j 1"
Aníbal Limón285b2e32018-02-06 15:13:38 -060028 GST_INTEGRATION_SUITES: "http://testdata.validation.linaro.org/gst-validate/gst-integration-testsuites_1.12.tar.gz"
Aníbal Limónb02c8652018-05-09 15:27:49 -050029 GST_IGNORE_TESTS_REPO: ""
30 GST_IGNORE_TESTS_BRANCH: "master"
31 GST_IGNORE_TESTS_FILE: ""
Aníbal Limón6be6a272017-12-05 18:18:39 -060032
33run:
34 steps:
Aníbal Limónb02c8652018-05-09 15:27:49 -050035 - . ./automated/lib/sh-test-lib
36 - cd ./automated/linux/gst-validate
Aníbal Limón285b2e32018-02-06 15:13:38 -060037 - wget ${GST_INTEGRATION_SUITES}
38 - tar -xzf $(basename ${GST_INTEGRATION_SUITES}) -C /
Aníbal Limónb02c8652018-05-09 15:27:49 -050039 - 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ónb0116772018-05-11 12:19:59 -050045 - gst-validate-launcher -M ${MAIN_DIR} ${OPTIONS} > ./gst-validate-raw.log || true
Aníbal Limónb02c8652018-05-09 15:27:49 -050046 - ./gst_validate_lava_parse.py ./gst-validate-raw.log ${IGNORE_FILE} > ./result.txt
47 - ../../utils/send-to-lava.sh ./result.txt