mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Allow .llx testcases (i.e., those that contain explicit RUN: stmts.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
703379827f
commit
1440c2a96e
@ -10,9 +10,9 @@ include $(LEVEL)/test/Makefile.tests
|
||||
.PRECIOUS: Output/%.c
|
||||
|
||||
TESTS := $(wildcard *.ll)
|
||||
FTESTS := $(wildcard *.llx) # Freeform tests
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.to))
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
|
||||
|
||||
Output/%.to: Output/%.c
|
||||
$(CC) -c -Werror $< -o $@ || \
|
||||
@ -21,3 +21,7 @@ Output/%.to: Output/%.c
|
||||
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
|
||||
$(LAS) < $< | $(LDIS) -c > $@ || \
|
||||
(rm -f $@; $(FAILURE) $@ )
|
||||
|
||||
Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
|
||||
-$(TESTRUNR) $<
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user