summaryrefslogtreecommitdiff
path: root/test/examples.sh
diff options
context:
space:
mode:
authorTom Finegan <tomfinegan@google.com>2014-04-28 20:45:26 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-04-28 20:45:26 -0700
commit5573301ddee1f8d60489a8532fb96599bd6715a3 (patch)
treeac1cde11d26c80c0b2eab69563c4ccbe72417691 /test/examples.sh
parent5ea01d5eb87e4736896d44de56c90b044bbe3110 (diff)
parentfaf4aa9ba70b2e57f1be3c3cecef699943df7910 (diff)
downloadlibvpx-5573301ddee1f8d60489a8532fb96599bd6715a3.tar
libvpx-5573301ddee1f8d60489a8532fb96599bd6715a3.tar.gz
libvpx-5573301ddee1f8d60489a8532fb96599bd6715a3.tar.bz2
libvpx-5573301ddee1f8d60489a8532fb96599bd6715a3.zip
Merge "Add script for running all example tests."
Diffstat (limited to 'test/examples.sh')
-rwxr-xr-xtest/examples.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/examples.sh b/test/examples.sh
new file mode 100755
index 000000000..ac2a18c03
--- /dev/null
+++ b/test/examples.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+##
+## Copyright (c) 2014 The WebM project authors. All Rights Reserved.
+##
+## Use of this source code is governed by a BSD-style license
+## that can be found in the LICENSE file in the root of the source
+## tree. An additional intellectual property rights grant can be found
+## in the file PATENTS. All contributing project authors may
+## be found in the AUTHORS file in the root of the source tree.
+##
+## This file runs all of the tests for the libvpx examples.
+##
+. $(dirname $0)/tools_common.sh
+
+example_tests=$(ls $(dirname $0)/*.sh)
+
+# List of script names to exclude.
+exclude_list="examples vpxdec vpxenc tools_common"
+
+# Filter out the scripts in $exclude_list.
+for word in ${exclude_list}; do
+ example_tests=$(filter_strings "${example_tests}" "${word}" exclude)
+done
+
+for test in ${example_tests}; do
+ # Source each test script so that exporting variables can be avoided.
+ . "${test}"
+done