]> granicus.if.org Git - libvpx/blobdiff - test/vpxdec.sh
Merge "endian_inl.h: fix mips32 android build"
[libvpx] / test / vpxdec.sh
index 2f23ca7c172f123a42a31fa70b986d5a79a6b62a..de51c8004ed7fa4586857f714817603f70044d2d 100755 (executable)
@@ -96,9 +96,14 @@ vpxdec_vp9_webm_less_than_50_frames() {
   if [ "$(vpxdec_can_decode_vp9)" = "yes" ] && \
      [ "$(webm_io_available)" = "yes" ]; then
     local readonly decoder="$(vpx_tool_path vpxdec)"
-    eval "${VPX_TEST_PREFIX}" "${decoder}" "${VP9_LT_50_FRAMES_WEBM_FILE}" \
-      --summary --noblit 2>&1 \
-      | awk '{ exit $1 != 10; }'
+    local readonly expected=10
+    local readonly num_frames=$(${VPX_TEST_PREFIX} "${decoder}" \
+      "${VP9_LT_50_FRAMES_WEBM_FILE}" --summary --noblit 2>&1 \
+      | awk '/^[0-9]+ decoded frames/ { print $1 }')
+    if [ "$num_frames" -ne "$expected" ]; then
+      elog "Output frames ($num_frames) != expected ($expected)"
+      return 1
+    fi
   fi
 }