llvm.org GIT mirror llvm / 9df5561
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36049 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
2 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
112112 check-llvm2cpp:
113113 $(MAKE) check TESTSUITE=Feature RUNLLVM2CPP=1
114114
115 check-one:
116 $(MAKE) -C test check-one TESTONE=$(TESTONE)
117
115118 srpm: $(LLVM_OBJ_ROOT)/llvm.spec
116119 rpmbuild -bs $(LLVM_OBJ_ROOT)/llvm.spec
117120
4141 @echo "*** dejagnu not found. Make sure runtest is in your PATH, then reconfigure llvm."
4242 endif
4343
44 ifdef TESTONE
45 CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE))
46 CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE))
47 SUBDIR := $(shell dirname $(CLEANED_TESTONE))
48 TESTPATH := $(LLVM_SRC_ROOT)/test/$(CLEANED_TESTONE)
49 check-one: site.exp $(TCLSH)
50 @( echo "source $(LLVM_SRC_ROOT)/test/site.exp" ; \
51 echo "set subdir $(SUBDIR)" ; \
52 echo "proc pass { msg } { puts \"PASS: \$$msg\" } "; \
53 echo "proc fail { msg } { puts \"FAIL: \$$msg\" }" ; \
54 echo "proc xfail { msg } { puts \"XFAIL: \$$msg\" }" ; \
55 echo "proc xpass { msg } { puts \"XPASS: \$$msg\" }" ; \
56 echo "source $(LLVM_SRC_ROOT)/test/lib/llvm.exp" ; \
57 echo "RunLLVMTests $(TESTPATH)" ) | \
58 ( ulimit -t 600 ; ulimit -d 512000 ; \
59 PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \
60 $(TCLSH) )
61 endif
62
4463 clean::
4564 $(RM) -rf `find $(LLVM_OBJ_ROOT)/test -name Output -type d -print`
4665