summaryrefslogtreecommitdiff
path: root/test/resize_util.sh
diff options
context:
space:
mode:
authorTom Finegan <tomfinegan@google.com>2014-06-16 10:57:00 -0700
committerTom Finegan <tomfinegan@google.com>2014-06-16 10:57:00 -0700
commit12672c24d326337b379822493d0963e6f9a44360 (patch)
tree734b1907f807dc34b8be1ad7c64de260f6b0443d /test/resize_util.sh
parent1557d4b0a2ec3da7001e953ab4a2e83aa454316e (diff)
downloadlibvpx-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/resize_util.sh')
-rwxr-xr-xtest/resize_util.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/resize_util.sh b/test/resize_util.sh
index 2a8e3fb7c..ab3dfd151 100755
--- a/test/resize_util.sh
+++ b/test/resize_util.sh
@@ -33,7 +33,10 @@ resize_util() {
# resize_util is available only when CONFIG_SHARED is disabled.
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}" \
"${YUV_RAW_INPUT_WIDTH}x${YUV_RAW_INPUT_HEIGHT}" \