Kouhei Sutou
null+****@clear*****
Tue Oct 8 14:55:20 JST 2013
Kouhei Sutou 2013-10-08 14:55:20 +0900 (Tue, 08 Oct 2013) New Revision: 355d05424b5912ac4946ec8dc4cba46b2b10e706 https://github.com/mroonga/mroonga/commit/355d05424b5912ac4946ec8dc4cba46b2b10e706 Message: test: support collecting tests from multi test suites Modified files: test/run-sql-test.sh Modified: test/run-sql-test.sh (+8 -6) =================================================================== --- test/run-sql-test.sh 2013-10-08 14:41:55 +0900 (5685983) +++ test/run-sql-test.sh 2013-10-08 14:55:20 +0900 (10441fa) @@ -192,6 +192,14 @@ while [ $# -gt 0 ]; do ;; esac shift + + if [ -n "${test_name}" ]; then + if [ -n "${test_names}" ]; then + test_names="${test_names}|" + fi + test_names="${test_names}.*${test_name}" + fi + test_suite_name=$(echo "$test_suite_name" | sed -e "s,^${suite_dir}/,,") if echo "${test_suite_names}" | grep --quiet "${test_suite_name}"; then continue @@ -200,12 +208,6 @@ while [ $# -gt 0 ]; do test_suite_names="${test_suite_names}," fi test_suite_names="${test_suite_names}${test_suite_name}" - if [ -n "${test_name}" ]; then - if [ -n "${test_names}" ]; then - test_names="${test_names}," - fi - test_names="${test_names}${test_name}" - fi ;; esac done -------------- next part -------------- HTML����������������������������... 下載