summaryrefslogtreecommitdiff
path: root/automated/linux/gst-validate/gst-validate.yaml
blob: 7a3e765000c6f97619238a691e05f79df4fc7bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
metadata:
    format: Lava-Test Test Definition 1.0
    name: gst-validate
    description: "A suite of tools to run integration tests for Gstreamer,
                  For more information: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-validate/html/"
    maintainer:
        - anibal.limon@linaro.org
    os:
        - openembedded
    scope:
        - functional
    devices:
        - dragonboard410c

# MAIN_DIR:
# * Directory where gst-validate will run, needs to contain gst-integration-testsuites,
#   https://cgit.freedesktop.org/gstreamer/gst-integration-testsuites
# OPTIONS:
# * -nd: To execute without display attached required Xvfb
# * -v: Verbose mode
# * -j: To execute only one job a time, avoid OOM
# GST_INTEGRATION_SUITES:
# * URL with the tarball of Gstreamer integration suites (cases, media),
#   https://github.com/GStreamer/gst-integration-testsuites
params:
    MAIN_DIR: "/gst-validate"
    OPTIONS: "-nd -v -j 1"
    GST_INTEGRATION_SUITES: "http://testdata.validation.linaro.org/gst-validate/gst-integration-testsuites_1.12.tar.gz"
    GST_IGNORE_TESTS_REPO: ""
    GST_IGNORE_TESTS_BRANCH: "master"
    GST_IGNORE_TESTS_FILE: ""

run:
    steps:
        - . ./automated/lib/sh-test-lib
        - cd ./automated/linux/gst-validate
        - wget ${GST_INTEGRATION_SUITES}
        - tar -xzf $(basename ${GST_INTEGRATION_SUITES}) -C /
        - IGNORE_FILE=""
        - if [ ! -z "${GST_IGNORE_TESTS_REPO}" ] && [ ! -z "${GST_IGNORE_TESTS_FILE}" ]; then
        -     repo_path=${PWD}/$(basename ${GST_IGNORE_TESTS_REPO})
        -     git clone -b ${GST_IGNORE_TESTS_BRANCH} ${GST_IGNORE_TESTS_REPO} $repo_path
        -     IGNORE_FILE=${repo_path}/${GST_IGNORE_TESTS_FILE}
        - fi
        - gst-validate-launcher -M ${MAIN_DIR} ${OPTIONS} 2>&1 | tee ./gst-validate-raw.log
        - ./gst_validate_lava_parse.py ./gst-validate-raw.log ${IGNORE_FILE} > ./result.txt
        - ../../utils/send-to-lava.sh ./result.txt