Merge "example tests: Make failures due to incorrect bin path easier to diagnose."
This commit is contained in:
commit
54547f6827
@ -34,7 +34,10 @@ decode_to_md5() {
|
|||||||
local expected_md5="$3"
|
local expected_md5="$3"
|
||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/decode_to_md5_${codec}"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/decode_to_md5_${codec}"
|
||||||
|
|
||||||
[ -x "${decoder}" ] || return 1
|
if [ ! -x "${decoder}" ]; then
|
||||||
|
elog "${decoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
||||||
|
|
||||||
|
@ -34,7 +34,10 @@ decode_with_drops() {
|
|||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/decode_with_drops_${codec}"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/decode_with_drops_${codec}"
|
||||||
local drop_mode="$3"
|
local drop_mode="$3"
|
||||||
|
|
||||||
[ -x "${decoder}" ] || return 1
|
if [ ! -x "${decoder}" ]; then
|
||||||
|
elog "${decoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${decoder}" "${input_file}" "${output_file}" "${drop_mode}" ${devnull}
|
eval "${decoder}" "${input_file}" "${output_file}" "${drop_mode}" ${devnull}
|
||||||
|
|
||||||
|
@ -32,7 +32,10 @@ postproc() {
|
|||||||
local codec="$2"
|
local codec="$2"
|
||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/postproc_${codec}.raw"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/postproc_${codec}.raw"
|
||||||
|
|
||||||
[ -x "${decoder}" ] || return 1
|
if [ ! -x "${decoder}" ]; then
|
||||||
|
elog "${decoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
||||||
|
|
||||||
|
@ -33,7 +33,10 @@ resize_util() {
|
|||||||
|
|
||||||
# resize_util is available only when CONFIG_SHARED is disabled.
|
# resize_util is available only when CONFIG_SHARED is disabled.
|
||||||
if [ -z "$(vpx_config_option_enabled CONFIG_SHARED)" ]; then
|
if [ -z "$(vpx_config_option_enabled CONFIG_SHARED)" ]; then
|
||||||
[ -x "${resizer}" ] || return 1
|
if [ ! -x "${resizer}" ]; then
|
||||||
|
elog "${resizer} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${resizer}" "${YUV_RAW_INPUT}" \
|
eval "${resizer}" "${YUV_RAW_INPUT}" \
|
||||||
"${YUV_RAW_INPUT_WIDTH}x${YUV_RAW_INPUT_HEIGHT}" \
|
"${YUV_RAW_INPUT_WIDTH}x${YUV_RAW_INPUT_HEIGHT}" \
|
||||||
|
@ -32,7 +32,10 @@ simple_decoder() {
|
|||||||
local codec="$2"
|
local codec="$2"
|
||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/simple_decoder_${codec}.raw"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/simple_decoder_${codec}.raw"
|
||||||
|
|
||||||
[ -x "${decoder}" ] || return 1
|
if [ ! -x "${decoder}" ]; then
|
||||||
|
elog "${decoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
eval "${decoder}" "${input_file}" "${output_file}" ${devnull}
|
||||||
|
|
||||||
|
@ -29,7 +29,10 @@ simple_encoder() {
|
|||||||
local codec="$1"
|
local codec="$1"
|
||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/simple_encoder_${codec}.ivf"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/simple_encoder_${codec}.ivf"
|
||||||
|
|
||||||
[ -x "${encoder}" ] || return 1
|
if [ ! -x "${encoder}" ]; then
|
||||||
|
elog "${encoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${encoder}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
|
eval "${encoder}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
|
||||||
"${YUV_RAW_INPUT_HEIGHT}" "${YUV_RAW_INPUT}" "${output_file}" 9999 \
|
"${YUV_RAW_INPUT_HEIGHT}" "${YUV_RAW_INPUT}" "${output_file}" 9999 \
|
||||||
|
@ -17,6 +17,10 @@ VPX_TEST_TOOLS_COMMON_SH=included
|
|||||||
set -e
|
set -e
|
||||||
devnull='> /dev/null 2>&1'
|
devnull='> /dev/null 2>&1'
|
||||||
|
|
||||||
|
elog() {
|
||||||
|
echo "$@" 1>&2
|
||||||
|
}
|
||||||
|
|
||||||
vlog() {
|
vlog() {
|
||||||
if [ "${VPX_TEST_VERBOSE_OUTPUT}" = "yes" ]; then
|
if [ "${VPX_TEST_VERBOSE_OUTPUT}" = "yes" ]; then
|
||||||
echo "$@"
|
echo "$@"
|
||||||
|
@ -29,7 +29,10 @@ twopass_encoder() {
|
|||||||
local codec="$1"
|
local codec="$1"
|
||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/twopass_encoder_${codec}.ivf"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/twopass_encoder_${codec}.ivf"
|
||||||
|
|
||||||
[ -x "${encoder}" ] || return 1
|
if [ ! -x "${encoder}" ]; then
|
||||||
|
elog "${encoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${encoder}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
|
eval "${encoder}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
|
||||||
"${YUV_RAW_INPUT_HEIGHT}" "${YUV_RAW_INPUT}" "${output_file}" \
|
"${YUV_RAW_INPUT_HEIGHT}" "${YUV_RAW_INPUT}" "${output_file}" \
|
||||||
|
@ -34,7 +34,10 @@ vpx_set_ref() {
|
|||||||
local output_file="${VPX_TEST_OUTPUT_DIR}/vp8cx_set_ref_${codec}.ivf"
|
local output_file="${VPX_TEST_OUTPUT_DIR}/vp8cx_set_ref_${codec}.ivf"
|
||||||
local ref_frame_num=90
|
local ref_frame_num=90
|
||||||
|
|
||||||
[ -x "${encoder}" ] || return 1
|
if [ ! -x "${encoder}" ]; then
|
||||||
|
elog "${encoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${encoder}" "${YUV_RAW_INPUT_WIDTH}" "${YUV_RAW_INPUT_HEIGHT}" \
|
eval "${encoder}" "${YUV_RAW_INPUT_WIDTH}" "${YUV_RAW_INPUT_HEIGHT}" \
|
||||||
"${YUV_RAW_INPUT}" "${output_file}" "${ref_frame_num}" \
|
"${YUV_RAW_INPUT}" "${output_file}" "${ref_frame_num}" \
|
||||||
|
@ -34,7 +34,10 @@ vp9_spatial_svc_encoder() {
|
|||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
||||||
[ -x "${encoder}" ] || return 1
|
if [ ! -x "${encoder}" ]; then
|
||||||
|
elog "${encoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${encoder}" -w "${YUV_RAW_INPUT_WIDTH}" -h "${YUV_RAW_INPUT_HEIGHT}" \
|
eval "${encoder}" -w "${YUV_RAW_INPUT_WIDTH}" -h "${YUV_RAW_INPUT_HEIGHT}" \
|
||||||
-k "${max_kf}" -f "${frames_to_encode}" "$@" "${YUV_RAW_INPUT}" \
|
-k "${max_kf}" -f "${frames_to_encode}" "$@" "${YUV_RAW_INPUT}" \
|
||||||
|
@ -39,7 +39,10 @@ vpx_tsvc_encoder() {
|
|||||||
|
|
||||||
shift 2
|
shift 2
|
||||||
|
|
||||||
[ -x "${encoder}" ] || return 1
|
if [ ! -x "${encoder}" ]; then
|
||||||
|
elog "${encoder} does not exist or is not executable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
eval "${encoder}" "${YUV_RAW_INPUT}" "${output_file}" "${codec}" \
|
eval "${encoder}" "${YUV_RAW_INPUT}" "${output_file}" "${codec}" \
|
||||||
"${YUV_RAW_INPUT_WIDTH}" "${YUV_RAW_INPUT_HEIGHT}" \
|
"${YUV_RAW_INPUT_WIDTH}" "${YUV_RAW_INPUT_HEIGHT}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user