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 ## |
11 ## This file runs all of the tests for the libvpx examples. | 11 ## This file runs all of the tests for the libvpx examples. |
12 ## | 12 ## |
13 . $(dirname $0)/tools_common.sh | 13 . $(dirname $0)/tools_common.sh |
14 | 14 |
15 example_tests=$(ls $(dirname $0)/*.sh) | 15 example_tests=$(ls $(dirname $0)/*.sh) |
16 | 16 |
17 # List of script names to exclude. | 17 # List of script names to exclude. |
18 exclude_list="examples vpxdec vpxenc tools_common" | 18 exclude_list="examples vpxdec vpxenc tools_common" |
19 | 19 |
20 # Filter out the scripts in $exclude_list. | 20 # Filter out the scripts in $exclude_list. |
21 for word in ${exclude_list}; do | 21 for word in ${exclude_list}; do |
22 example_tests=$(filter_strings "${example_tests}" "${word}" exclude) | 22 example_tests=$(filter_strings "${example_tests}" "${word}" exclude) |
23 done | 23 done |
24 | 24 |
25 for test in ${example_tests}; do | 25 for test in ${example_tests}; do |
26 # Source each test script so that exporting variables can be avoided. | 26 # Source each test script so that exporting variables can be avoided. |
| 27 VPX_TEST_NAME="$(basename ${test%.*})" |
27 . "${test}" | 28 . "${test}" |
28 done | 29 done |
OLD | NEW |