summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: de6ac40c5e0b95bc01117d401811f2ae99de2214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TESTS := $(wildcard *.ll)

test all : testasmdis testopt
	@echo "All tests successfully completed!"

testasmdis : $(TESTS:%.ll=%.ll.asmdis)
	@echo "All assembler/disassembler test succeeded!"

testopt : $(TESTS:%.ll=%.ll.opt)

clean :
	rm -f *.[123] *.bc core

%.asmdis: %
	@echo "Running assembler/disassembler test on $<"
	@./TestAsmDisasm.sh $<

%.opt: %
	@echo "Running optimizier test on $<"
	@./TestOptimizer.sh $<