Added scripts/test
Signed-off-by: James P. Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
0ecaf844d7
commit
b079f12481
23
scripts/test
Executable file
23
scripts/test
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
HOST_MEDIA=$(pwd)/media
|
||||||
|
[ ! -e "${HOST_MEDIA}/AUD_MW_E.264" ] && {
|
||||||
|
mkdir -p ${HOST_MEDIA}
|
||||||
|
wget -q -O ${HOST_MEDIA}/AUD_MW_E.264 https://fate-suite.libav.org/h264-confo$
|
||||||
|
}
|
||||||
|
tests=(
|
||||||
|
"decode AUD_MW_E.264 AUD_MW.yuv"
|
||||||
|
"encode AUD_MW.yuv AUD_MW_E.h264"
|
||||||
|
"transcode AUD_MW_E.264 AUD_MW_E.hevc"
|
||||||
|
"1N_transcode AUD_MW_E.264 AUD_1N"
|
||||||
|
)
|
||||||
|
for test in "${tests[@]}"; do
|
||||||
|
test=($test)
|
||||||
|
docker run --rm \
|
||||||
|
--volume ${HOST_MEDIA}:/media -it \
|
||||||
|
--device=/dev/dri -e QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128} \
|
||||||
|
intel-media-ffmpeg ${test[*]} || {
|
||||||
|
echo "Error: Test failed: ${test[*]}"
|
||||||
|
break
|
||||||
|
}
|
||||||
|
done
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user