tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

examples.sh (1408B)


      1 #!/bin/sh
      2 ## Copyright (c) 2016, Alliance for Open Media. All rights reserved.
      3 ##
      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.
     10 ##
     11 ## This file runs all of the tests for the libaom examples.
     12 ##
     13 readonly EXEC_DIR="$(pwd)"
     14 . $(dirname $0)/tools_common.sh
     15 
     16 example_tests=$(ls -r $(dirname $0)/*.sh)
     17 
     18 # List of script names to exclude.
     19 exclude_list="best_encode examples run_encodes tools_common"
     20 
     21 if [ "$(realtime_only_build)" = "yes" ]; then
     22  exclude_list="${exclude_list} twopass_encoder simple_decoder lightfield_test"
     23 fi
     24 
     25 # Filter out the scripts in $exclude_list.
     26 for word in ${exclude_list}; do
     27  example_tests=$(filter_strings "${example_tests}" "${word}" exclude)
     28 done
     29 
     30 for test in ${example_tests}; do
     31  # Source each test script so that exporting variables can be avoided.
     32  AOM_TEST_NAME="$(basename ${test%.*})"
     33  . "${test}"
     34  # Restore the working directory to the one at the beginning of execution.
     35  # This avoids side-effects from tests that change the directory.
     36  cd "${EXEC_DIR}"
     37 done