Commit 8982e208 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

decode_to_md5.sh: vp8->aom

Change-Id: I0dcb0643cf83ee99b63336df851cbca749c11b68
parent 1f470046
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
. $(dirname $0)/tools_common.sh . $(dirname $0)/tools_common.sh
# Environment check: Make sure input is available: # Environment check: Make sure input is available:
# $VP8_IVF_FILE and $AV1_IVF_FILE are required. # $AOM_IVF_FILE and $AV1_IVF_FILE are required.
decode_to_md5_verify_environment() { decode_to_md5_verify_environment() {
if [ ! -e "${VP8_IVF_FILE}" ] || [ ! -e "${AV1_IVF_FILE}" ]; then if [ ! -e "${AOM_IVF_FILE}" ] || [ ! -e "${AV1_IVF_FILE}" ]; then
echo "Libaom test data must exist in LIBVPX_TEST_DATA_PATH." echo "Libaom test data must exist in LIBAOM_TEST_DATA_PATH."
return 1 return 1
fi fi
} }
...@@ -49,12 +49,12 @@ decode_to_md5() { ...@@ -49,12 +49,12 @@ decode_to_md5() {
[ "${actual_md5}" = "${expected_md5}" ] || return 1 [ "${actual_md5}" = "${expected_md5}" ] || return 1
} }
decode_to_md5_vp8() { decode_to_md5_aom() {
# expected MD5 sum for the last frame. # expected MD5 sum for the last frame.
local expected_md5="56794d911b02190212bca92f88ad60c6" local expected_md5="56794d911b02190212bca92f88ad60c6"
if [ "$(vp8_decode_available)" = "yes" ]; then if [ "$(aom_decode_available)" = "yes" ]; then
decode_to_md5 "${VP8_IVF_FILE}" "vp8" "${expected_md5}" decode_to_md5 "${AOM_IVF_FILE}" "aom" "${expected_md5}"
fi fi
} }
...@@ -67,7 +67,7 @@ decode_to_md5_av1() { ...@@ -67,7 +67,7 @@ decode_to_md5_av1() {
fi fi
} }
decode_to_md5_tests="decode_to_md5_vp8 decode_to_md5_tests="decode_to_md5_aom
decode_to_md5_av1" decode_to_md5_av1"
run_tests decode_to_md5_verify_environment "${decode_to_md5_tests}" run_tests decode_to_md5_verify_environment "${decode_to_md5_tests}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment