Make test output file configurable.

This commit is contained in:
Bastian Kleineidam 2012-11-28 18:19:41 +01:00
parent 451fd982d9
commit d89c225292
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,8 @@ NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
# - use multiple processors # - use multiple processors
# - write test results in file # - write test results in file
# - run all tests found in the "tests" subdirectory # - run all tests found in the "tests" subdirectory
PYTESTOPTS:=-n $(NUMPROCESSORS) --resultlog=testresults.txt --tb=short TESTOUTPUT?=testresults.txt
PYTESTOPTS:=-n $(NUMPROCESSORS) --resultlog=$(TESTOUTPUT) --tb=short
CHMODMINUSMINUS:=-- CHMODMINUSMINUS:=--
# directory or file with tests to run # directory or file with tests to run
TESTS ?= tests TESTS ?= tests

View file

@ -6,6 +6,6 @@ script=test.sh
rm -f "$script" rm -f "$script"
echo "#!/bin/sh -e" > "$script" echo "#!/bin/sh -e" > "$script"
egrep -v "^\. " testresults.txt | egrep "^F " | cut -b "3-" | awk '{ print "make test TESTS=" $0; }' >> "$script" egrep -v "^\. " testresults.txt | egrep "^F " | cut -b "3-" | awk '{ print "make test TESTOUTPUT=/dev/null TESTS=" $0; }' >> "$script"
chmod 755 "$script" chmod 755 "$script"