blob: 2cdb89dd08b4a4a1b6bdf4611976da3029de026f [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
Tom Finegan8ab44142018-04-27 14:57:52 -070015example_tests=$(ls -r $(dirname $0)/*.sh)
Tom Fineganfaf4aa92014-04-28 16:58:40 -070016
17# List of script names to exclude.
Tom Finegane7831712018-05-21 13:05:33 -070018exclude_list="best_encode examples run_encodes 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