From: Christian Würdig Date: Fri, 2 Jun 2006 08:12:21 +0000 (+0000) Subject: put results into separate result dir X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dc5b7865bc6c8120348a183a1776ab4a7ca209bb;p=libfirm put results into separate result dir all results are named xxx_failed.txt now --- diff --git a/ir/be/test/Makefile b/ir/be/test/Makefile index 8a2f8b898..ceb86bb5f 100644 --- a/ir/be/test/Makefile +++ b/ir/be/test/Makefile @@ -25,23 +25,29 @@ gcc/%.result: gcc/%.exe firm/%.result: firm/%.exe @test -z firm || mkdir -p firm - firm/$*.exe >& $@ || echo "$*.c" >> doesntrun.txt + @test -z $(RESDIR) || mkdir -p $(RESDIR) + firm/$*.exe >& $@ || echo "$*.c" >> $(RESDIR)/run_failed.txt compare_%.c: gcc/%.exe firm/%.exe gcc/%.result firm/%.result - diff -u gcc/$*.result firm/$*.result || echo "$*.c" >> broken.txt + @test -z $(RESDIR) || mkdir -p $(RESDIR) + diff -u gcc/$*.result firm/$*.result || echo "$*.c" >> $(RESDIR)/compare_failed.txt gcc/%.exe: %.c @test -z gcc || mkdir -p gcc + @test -z $(RESDIR) || mkdir -p $(RESDIR) $(GCC) $(GCC_CFLAGS) $*.c -o $@ firm/%.s: %.c @test -z firm || mkdir -p firm - cd firm ; $(EDG) $(EDG_CFLAGS) ../$*.c || echo "$*.c" >> ../compile_failed.txt + @test -z $(RESDIR) || mkdir -p $(RESDIR) + cd firm ; $(EDG) $(EDG_CFLAGS) ../$*.c || echo "$*.c" >> ../$(RESDIR)/compile_failed.txt mv $*.s firm || echo "" > firm/$*.s firm/%.exe: firm/%.s - $(GCC) firm/$*.s -o $@ || echo "$*.c" >> link_failed.txt + @test -z $(RESDIR) || mkdir -p $(RESDIR) + $(GCC) firm/$*.s -o $@ || echo "$*.c" >> $(RESDIR)/link_failed.txt clean: rm -f gcc/* rm -f firm/* + rm -f $(RESDIR)/*