| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
| 4 ## | 4 ## |
| 5 ## Use of this source code is governed by a BSD-style license | 5 ## Use of this source code is governed by a BSD-style license |
| 6 ## that can be found in the LICENSE file in the root of the source | 6 ## that can be found in the LICENSE file in the root of the source |
| 7 ## tree. An additional intellectual property rights grant can be found | 7 ## tree. An additional intellectual property rights grant can be found |
| 8 ## in the file PATENTS. All contributing project authors may | 8 ## in the file PATENTS. All contributing project authors may |
| 9 ## be found in the AUTHORS file in the root of the source tree. | 9 ## be found in the AUTHORS file in the root of the source tree. |
| 10 ## | 10 ## |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 local decoder="${LIBVPX_BIN_PATH}/simple_decoder${VPX_TEST_EXE_SUFFIX}" | 30 local decoder="${LIBVPX_BIN_PATH}/simple_decoder${VPX_TEST_EXE_SUFFIX}" |
| 31 local input_file="$1" | 31 local input_file="$1" |
| 32 local codec="$2" | 32 local codec="$2" |
| 33 local output_file="${VPX_TEST_OUTPUT_DIR}/simple_decoder_${codec}.raw" | 33 local output_file="${VPX_TEST_OUTPUT_DIR}/simple_decoder_${codec}.raw" |
| 34 | 34 |
| 35 if [ ! -x "${decoder}" ]; then | 35 if [ ! -x "${decoder}" ]; then |
| 36 elog "${decoder} does not exist or is not executable." | 36 elog "${decoder} does not exist or is not executable." |
| 37 return 1 | 37 return 1 |
| 38 fi | 38 fi |
| 39 | 39 |
| 40 eval "${decoder}" "${input_file}" "${output_file}" ${devnull} | 40 eval "${VPX_TEST_PREFIX}" "${decoder}" "${input_file}" "${output_file}" \ |
| 41 ${devnull} |
| 41 | 42 |
| 42 [ -e "${output_file}" ] || return 1 | 43 [ -e "${output_file}" ] || return 1 |
| 43 } | 44 } |
| 44 | 45 |
| 45 simple_decoder_vp8() { | 46 simple_decoder_vp8() { |
| 46 if [ "$(vp8_decode_available)" = "yes" ]; then | 47 if [ "$(vp8_decode_available)" = "yes" ]; then |
| 47 simple_decoder "${VP8_IVF_FILE}" vp8 || return 1 | 48 simple_decoder "${VP8_IVF_FILE}" vp8 || return 1 |
| 48 fi | 49 fi |
| 49 } | 50 } |
| 50 | 51 |
| 51 simple_decoder_vp9() { | 52 simple_decoder_vp9() { |
| 52 if [ "$(vp9_decode_available)" = "yes" ]; then | 53 if [ "$(vp9_decode_available)" = "yes" ]; then |
| 53 simple_decoder "${VP9_IVF_FILE}" vp9 || return 1 | 54 simple_decoder "${VP9_IVF_FILE}" vp9 || return 1 |
| 54 fi | 55 fi |
| 55 } | 56 } |
| 56 | 57 |
| 57 simple_decoder_tests="simple_decoder_vp8 | 58 simple_decoder_tests="simple_decoder_vp8 |
| 58 simple_decoder_vp9" | 59 simple_decoder_vp9" |
| 59 | 60 |
| 60 run_tests simple_decoder_verify_environment "${simple_decoder_tests}" | 61 run_tests simple_decoder_verify_environment "${simple_decoder_tests}" |
| OLD | NEW |