Merge branch 'jk/test-output'

When TEST_OUTPUT_DIRECTORY setting is used, it was handled somewhat
inconsistently between the test framework and t/Makefile, and logic
to summarize the results looked at a wrong place.

* jk/test-output:
  t/Makefile: don't define TEST_RESULTS_DIRECTORY recursively
  test output: respect $TEST_OUTPUT_DIRECTORY
  t/Makefile: fix result handling with TEST_OUTPUT_DIRECTORY
This commit is contained in:
Junio C Hamano
2013-05-29 14:29:11 -07:00
4 changed files with 21 additions and 7 deletions

View File

@ -1,6 +1,10 @@
#!/bin/sh
out_prefix=$(dirname "$0")/../test-results/valgrind.out
# Get TEST_OUTPUT_DIRECTORY from GIT-BUILD-OPTIONS if it's there...
. "$(dirname "$0")/../../GIT-BUILD-OPTIONS"
# ... otherwise set it to the default value.
: ${TEST_OUTPUT_DIRECTORY=$(dirname "$0")/..}
output=
count=0
total_count=0
@ -115,7 +119,7 @@ handle_one () {
finish_output
}
for test_script in "$(dirname "$0")"/../test-results/*.out
for test_script in "$TEST_OUTPUT_DIRECTORY"/test-results/*.out
do
handle_one $test_script
done