Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | ## Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 3 | ## |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 4 | ## This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | ## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | ## was not distributed with this source code in the LICENSE file, you can |
| 7 | ## obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | ## Media Patent License 1.0 was not distributed with this source code in the |
| 9 | ## PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 10 | ## |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 11 | ## This file runs all of the tests for the libaom examples. |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 12 | ## |
| 13 | . $(dirname $0)/tools_common.sh |
| 14 | |
Tom Finegan | 8ab4414 | 2018-04-27 14:57:52 -0700 | [diff] [blame] | 15 | example_tests=$(ls -r $(dirname $0)/*.sh) |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 16 | |
| 17 | # List of script names to exclude. |
Tom Finegan | e783171 | 2018-05-21 13:05:33 -0700 | [diff] [blame] | 18 | exclude_list="best_encode examples run_encodes tools_common" |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 19 | |
| 20 | # Filter out the scripts in $exclude_list. |
| 21 | for word in ${exclude_list}; do |
| 22 | example_tests=$(filter_strings "${example_tests}" "${word}" exclude) |
| 23 | done |
| 24 | |
| 25 | for test in ${example_tests}; do |
| 26 | # Source each test script so that exporting variables can be avoided. |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 27 | AOM_TEST_NAME="$(basename ${test%.*})" |
Tom Finegan | faf4aa9 | 2014-04-28 16:58:40 -0700 | [diff] [blame] | 28 | . "${test}" |
| 29 | done |