Changes in directory llvm/test:
Makefile updated: 1.96 -> 1.97 --- Log message: Add a new testing target: check-one. It is used like this: make check-one TESTONE=test/path/to/test.ll This runs a single check in exactly the same way that dejagnu runs it. --- Diffs of the changes: (+19 -0) Makefile | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+) Index: llvm/test/Makefile diff -u llvm/test/Makefile:1.96 llvm/test/Makefile:1.97 --- llvm/test/Makefile:1.96 Wed Apr 11 21:49:30 2007 +++ llvm/test/Makefile Sun Apr 15 01:18:50 2007 @@ -42,6 +42,25 @@ @echo "*** dejagnu not found. Make sure runtest is in your PATH, then reconfigure llvm." endif +ifdef TESTONE +CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE)) +CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE)) +SUBDIR := $(shell dirname $(CLEANED_TESTONE)) +TESTPATH := $(LLVM_SRC_ROOT)/test/$(CLEANED_TESTONE) +check-one: site.exp $(TCLSH) + @( echo "source $(LLVM_SRC_ROOT)/test/site.exp" ; \ + echo "set subdir $(SUBDIR)" ; \ + echo "proc pass { msg } { puts \"PASS: \$$msg\" } "; \ + echo "proc fail { msg } { puts \"FAIL: \$$msg\" }" ; \ + echo "proc xfail { msg } { puts \"XFAIL: \$$msg\" }" ; \ + echo "proc xpass { msg } { puts \"XPASS: \$$msg\" }" ; \ + echo "source $(LLVM_SRC_ROOT)/test/lib/llvm.exp" ; \ + echo "RunLLVMTests $(TESTPATH)" ) | \ + ( ulimit -t 600 ; ulimit -d 512000 ; \ + PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ + $(TCLSH) ) +endif + clean:: $(RM) -rf `find $(LLVM_OBJ_ROOT)/test -name Output -type d -print` _______________________________________________ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits