Index: source/libvpx/test/tools_common.sh |
=================================================================== |
--- source/libvpx/test/tools_common.sh (revision 292072) |
+++ source/libvpx/test/tools_common.sh (working copy) |
@@ -200,11 +200,11 @@ |
[ "$(vpx_config_option_enabled CONFIG_WEBM_IO)" = "yes" ] && echo yes |
} |
-# Filters strings from positional parameter one using the filter specified by |
-# positional parameter two. Filter behavior depends on the presence of a third |
-# positional parameter. When parameter three is present, strings that match the |
-# filter are excluded. When omitted, strings matching the filter are included. |
-# The filtered string is echoed to stdout. |
+# Filters strings from $1 using the filter specified by $2. Filter behavior |
+# depends on the presence of $3. When $3 is present, strings that match the |
+# filter are excluded. When $3 is omitted, strings matching the filter are |
+# included. |
+# The filtered result is echoed to stdout. |
filter_strings() { |
strings=${1} |
filter=${2} |
@@ -253,6 +253,15 @@ |
tests_to_filter=$(filter_strings "${tests_to_filter}" ${VPX_TEST_FILTER}) |
fi |
+ # User requested test listing: Dump test names and return. |
+ if [ "${VPX_TEST_LIST_TESTS}" = "yes" ]; then |
+ for test_name in $tests_to_filter; do |
+ echo ${test_name} |
+ done |
+ return |
+ fi |
+ |
+ # Combine environment and actual tests. |
local tests_to_run="${env_tests} ${tests_to_filter}" |
check_git_hashes |
@@ -283,6 +292,7 @@ |
--prefix: Allows for a user specified prefix to be inserted before all test |
programs. Grants the ability, for example, to run test programs |
within valgrind. |
+ --list-tests: List all test names and exit without actually running tests. |
--verbose: Verbose output. |
When the --bin-path option is not specified the script attempts to use |
@@ -342,6 +352,9 @@ |
--show-program-output) |
devnull= |
;; |
+ --list-tests) |
+ VPX_TEST_LIST_TESTS=yes |
+ ;; |
*) |
vpx_test_usage |
exit 1 |
@@ -401,6 +414,7 @@ |
VP9_WEBM_FILE=${VP9_WEBM_FILE} |
VPX_TEST_EXE_SUFFIX=${VPX_TEST_EXE_SUFFIX} |
VPX_TEST_FILTER=${VPX_TEST_FILTER} |
+ VPX_TEST_LIST_TESTS=${VPX_TEST_LIST_TESTS} |
VPX_TEST_OUTPUT_DIR=${VPX_TEST_OUTPUT_DIR} |
VPX_TEST_PREFIX=${VPX_TEST_PREFIX} |
VPX_TEST_RAND=${VPX_TEST_RAND} |