While hunting for two hanging tests,

(on solaris10, which are:
  CodeGen/PowerPC/frounds.ll
  Transforms/InstCombine/2008-02-23-MulSub.ll)

I needed a tool to figure out which one is the guilty.

To this end I have added a verbosity
option to the test/Makefile.

It can be invoked thus:

gmake check TESTSUITE=CodeGen/PowerPC VERBOSE="-v -v"

(The number of "-v"s specifies the verbosity level.
 Instead of "-v" other aliases can be specified,
 please consult the dejagnu docs for info.)

At level >= 2 following line is logged for each
test, before running it:

ABOUT TO RUN: <test>.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2008-02-26 12:08:55 +00:00
parent 212a11c417
commit 684ed3d987
2 changed files with 6 additions and 1 deletions

View File

@ -22,10 +22,14 @@ include Makefile.tests
# DejaGNU testing support
#===------------------------------------------------------------------------===#
ifdef VERBOSE
RUNTESTFLAGS := $(VERBOSE)
endif
ifdef TESTSUITE
CLEANED_TESTSUITE := $(patsubst %/,%,$(TESTSUITE))
CLEANED_TESTSUITE := $(patsubst test/%,%,$(CLEANED_TESTSUITE))
RUNTESTFLAGS := --tool $(CLEANED_TESTSUITE)
RUNTESTFLAGS += --tool $(CLEANED_TESTSUITE)
endif
IGNORE_TESTS :=

View File

@ -102,6 +102,7 @@ proc RunLLVMTests { test_source_files } {
#set timeout 40
set filename [file tail $test]
verbose "ABOUT TO RUN: $filename" 2
set outcome PASS
set tmpFile "$filename.tmp"