Add TMT test
This commit is contained in:
parent
dfb53dd9c0
commit
ec2e05e82b
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
@ -4,3 +4,4 @@ product_versions:
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
|
||||
11
plans/basic.fmf
Normal file
11
plans/basic.fmf
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
/:
|
||||
inherit: false
|
||||
|
||||
summary: Plan for running all tests
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
22
tests/main.fmf
Normal file
22
tests/main.fmf
Normal file
@ -0,0 +1,22 @@
|
||||
test: ./runtests.sh
|
||||
duration: 15m
|
||||
recommend:
|
||||
- git
|
||||
- wget
|
||||
- rpm-build
|
||||
- redhat-rpm-config
|
||||
- autoconf
|
||||
- automake
|
||||
- libtool
|
||||
- pkgconfig
|
||||
- make
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- libX11
|
||||
- libX11-devel
|
||||
- libdrm
|
||||
- libdrm-devel
|
||||
- libva
|
||||
- libva-devel
|
||||
- wayland-devel
|
||||
framework: shell
|
||||
42
tests/runtests.sh
Executable file
42
tests/runtests.sh
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
function error() {
|
||||
echo "$0: Error: $*" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
function tarball_fullname() {
|
||||
ls -1 $1.tar.* | head -1
|
||||
}
|
||||
|
||||
function tarball_exists() {
|
||||
ls -1 $1.tar.* > /dev/null 1>&2 && test -s $(tarball_fullname $1)
|
||||
}
|
||||
|
||||
# Script directory is now a working directory.
|
||||
cd $(dirname $0) || error "cannot cd to $(dirname $0)"
|
||||
|
||||
|
||||
git clone https://github.com/intel/libva-utils --no-tags --no-checkout || error "cannot git clone intel/libva-utils"
|
||||
|
||||
# Enter the directory with unpacked sources.
|
||||
cd libva-utils || error "cannot cd to libva-utils"
|
||||
GIT_COMMIT_LIBVA="1a13ae13382b7b548f3a7e8035e1d7df66662c0a"
|
||||
git reset --hard ${GIT_COMMIT_LIBVA} || error "cannot checkout the commit ${GIT_COMMIT_LIBVA}"
|
||||
|
||||
# Build the tests.
|
||||
autoreconf -fvi || error "cannot reconfigure libva-utils"
|
||||
rpm --eval '%configure --enable-tests' > configure.wrap || error "cannot wrap configure"
|
||||
bash configure.wrap || error "cannot configure libva-utils"
|
||||
make || error "cannot build libva-utils"
|
||||
|
||||
# These tests can run also in VM (other needs real working graphic adapter).
|
||||
GTEST_FILTER='Internal.Resolution'
|
||||
GTEST_FILTER="${GTEST_FILTER}:VAAPIFixture.getDisplay"
|
||||
GTEST_FILTER="${GTEST_FILTER}:VAAPIInitTerminate.vaInitialize_vaTerminate_Bad_Environment"
|
||||
GTEST_FILTER="${GTEST_FILTER}:VAAPIInitTerminate.vaInitialize_vaTerminate_Bad_vaSetDriverName"
|
||||
GTEST_FILTER="${GTEST_FILTER}:VAAPIInitTerminate.InitTermWithoutDisplay"
|
||||
export GTEST_FILTER
|
||||
|
||||
# Run the tests.
|
||||
./test/test_va_api
|
||||
Loading…
Reference in New Issue
Block a user