blob: 8f883a53290c075adf1fc34c75afd03d21bff3a1 [file] [log] [blame]
Tom Fineganfaf4aa92014-04-28 16:58:40 -07001#!/bin/sh
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07002## Copyright (c) 2016, Alliance for Open Media. All rights reserved
Tom Fineganfaf4aa92014-04-28 16:58:40 -07003##
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07004## 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 Fineganfaf4aa92014-04-28 16:58:40 -070010##
Yaowu Xu2ab7ff02016-09-02 12:04:54 -070011## This file runs all of the tests for the libaom examples.
Tom Fineganfaf4aa92014-04-28 16:58:40 -070012##
13. $(dirname $0)/tools_common.sh
14
15example_tests=$(ls $(dirname $0)/*.sh)
16
17# List of script names to exclude.
Tom Finegan4d91e162014-08-15 11:31:30 -070018exclude_list="examples tools_common"
Tom Fineganfaf4aa92014-04-28 16:58:40 -070019
20# Filter out the scripts in $exclude_list.
21for word in ${exclude_list}; do
22 example_tests=$(filter_strings "${example_tests}" "${word}" exclude)
23done
24
25for test in ${example_tests}; do
26 # Source each test script so that exporting variables can be avoided.
Yaowu Xuf883b422016-08-30 14:01:10 -070027 AOM_TEST_NAME="$(basename ${test%.*})"
Tom Fineganfaf4aa92014-04-28 16:58:40 -070028 . "${test}"
29done