diff options
author | Tom Finegan <tomfinegan@google.com> | 2014-06-16 10:57:00 -0700 |
---|---|---|
committer | Tom Finegan <tomfinegan@google.com> | 2014-06-16 10:57:00 -0700 |
commit | 12672c24d326337b379822493d0963e6f9a44360 (patch) | |
tree | 734b1907f807dc34b8be1ad7c64de260f6b0443d /test/vp8cx_set_ref.sh | |
parent | 1557d4b0a2ec3da7001e953ab4a2e83aa454316e (diff) | |
download | libvpx-12672c24d326337b379822493d0963e6f9a44360.tar libvpx-12672c24d326337b379822493d0963e6f9a44360.tar.gz libvpx-12672c24d326337b379822493d0963e6f9a44360.tar.bz2 libvpx-12672c24d326337b379822493d0963e6f9a44360.zip |
example tests: Make failures due to incorrect bin path easier to diagnose.
Add elog() to tools_common, and checks for the executable in each test.
Change-Id: I3c6334eca62c0b56040d91145abbe1bf5f9c763c
Diffstat (limited to 'test/vp8cx_set_ref.sh')
-rwxr-xr-x | test/vp8cx_set_ref.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/vp8cx_set_ref.sh b/test/vp8cx_set_ref.sh index ef9d0c04c..ee1005678 100755 --- a/test/vp8cx_set_ref.sh +++ b/test/vp8cx_set_ref.sh @@ -34,7 +34,10 @@ vpx_set_ref() { local output_file="${VPX_TEST_OUTPUT_DIR}/vp8cx_set_ref_${codec}.ivf" 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}" \ "${YUV_RAW_INPUT}" "${output_file}" "${ref_frame_num}" \ |