Make test output file configurable.
This commit is contained in:
parent
451fd982d9
commit
d89c225292
2 changed files with 3 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -10,7 +10,8 @@ NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
|
|||
# - use multiple processors
|
||||
# - write test results in file
|
||||
# - 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:=--
|
||||
# directory or file with tests to run
|
||||
TESTS ?= tests
|
||||
|
|
|
@ -6,6 +6,6 @@ script=test.sh
|
|||
|
||||
rm -f "$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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue