Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Run CI smoke tests

Oleg Nabiullin edited this page Jul 11, 2019 · 12 revisions

The documentation below provides information on how to run CI smoke tests locally

This documentation is created to run tests on Linux OS distributions

Before running tests ensure that required packages are installed:

git
git-lfs
python >= 3.6
python distro package

As for default we assume:
MediaStack tarball installed using install_media.sh or Media SDK has been previously compiled and installed to /opt/intel/mediasdk
Media driver has been compiled and installed to /opt/intel/msdk_driver

Create bash script run_tests.sh

#!/bin/bash

# If you have different configuration specify it as followed 
MSDK_CMAKE_INSTALL_PREFIX=/opt/intel/mediasdk
DRIVER_CMAKE_INSTALL_PREFIX=/opt/intel/mediasdk

# DRIVER_CMAKE_INSTALL_PREFIX=/opt/intel/msdk_driver  # this work in public CI

# Export path to Intel Media SDK folder
export MFX_HOME=$MSDK_CMAKE_INSTALL_PREFIX

# Export path to libraries
export LD_LIBRARY_PATH=$MSDK_CMAKE_INSTALL_PREFIX/lib64

# Export path to driver
export LIBVA_DRIVERS_PATH=$DRIVER_CMAKE_INSTALL_PREFIX/lib64

# Path to sample binaries
export PATH=$PATH:/opt/intel/mediasdk/share/mfx/samples/_bin

# Clone Infrastructure of Intel Media SDK
git clone https://github.com/Intel-Media-SDK/infrastructure.git

# Run CI Smoke tests 
python3 ./infrastructure/ted/ted.py

# Run special CI hevc-fei smoke tests
python3 ./infrastructure/smoke_test/hevc_fei_smoke_test.py

Note: Make the script executable

chmod +x run_tests.sh

Execute run_tests.sh

./run_tests.sh
Clone this wiki locally