metadata:
    format: Lava-Test Test Definition 1.0
    name: Firmware-Test-Suite
    description: "FirmWare Test Suite (fwts)"
    maintainer:
        - anders.roxell@linaro.org
        - naresh.kamboju@linaro.org
    os:
        - debian
        - ubuntu
        - fedora
        - centos
        - openembedded
    scope:
        - functional
    devices:
        - dragonboard410c
        - hi6220-hikey
        - juno
        - x15
        - x86

params:
        # Set of tests.
        TESTS: ""

        # Skip listed tests, e.g. s3,nx,method
        SKIP_TESTS: ""

        # If the following parameter is set, then the FWTS suite is
        # cloned and used unconditionally. In particular, the version
        # of the suite is set to the commit pointed to by the
        # parameter. A simple choice for the value of the parameter
        # is, e.g., HEAD.  If, instead, the parameter is
        # not set, then the suite present in TEST_DIR is used.
        TEST_PROG_VERSION: ""

        # If next parameter is set, then the FWTS suite is cloned
        # from the URL in TEST_GIT_URL. Otherwise it is cloned from the
        # standard repository for the suite. Note that cloning is done
        # only if TEST_PROG_VERSION is not empty
        TEST_GIT_URL: ""

        # If next parameter is set, then the FWTS suite is cloned to or
        # looked for in TEST_DIR. Otherwise it is cloned to $(pwd)/FWTS
        TEST_DIR: ""
        SKIP_INSTALL: false

run:
    steps:
        - cd ./automated/linux/fwts/
        - ./fwts.sh -t "${TESTS}" -k "${SKIP_TESTS}" -v "${TEST_PROG_VERSION}" -s "${SKIP_INSTALL}" -p "${TEST_DIR}" -u "${TEST_GIT_URL}"
        - ../../utils/send-to-lava.sh ./output/result.txt
