From: Till Riedel Date: Tue, 29 Apr 2003 11:38:47 +0000 (+0000) Subject: Simplified test target X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c35b23df501053126ce6345dbaaa9fd3be5482dc;p=libfirm Simplified test target [r1097] --- diff --git a/testprograms/Makefile.in b/testprograms/Makefile.in index 502c0e1a4..12bf7e34f 100644 --- a/testprograms/Makefile.in +++ b/testprograms/Makefile.in @@ -25,7 +25,7 @@ SOURCES := Makefile.in \ GENFILES = %.vcg results.txt bin_EXAMPLES = $(CFILES:.c=) -run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES)) +run_bin_EXAMPLES = $(patsubst %.c,../%;,$(CFILES)) include $(topdir)/MakeRules @@ -47,13 +47,11 @@ $(bin_EXAMPLES): $(topdir)/libfirm.a run: $(run_bin_EXAMPLES) -test: realclean all - ($(run_bin_EXAMPLES))>run-result.txt - ($(DIFF) run-result.txt $(REF_DIR)/run-result.txt) || (echo Libfirm test failed; exit 1) - for g in $(REF_DIR)/*.vcg; do\ - ($(DIFF) -s `basename $$g` $$g)|| (echo Libfirm test failed; exit 1) \ - done; - @echo Libfirm test successful +test: all + ls >.ignore + rm -rf results;mkdir results;cd results;($(run_bin_EXAMPLES)) >run-result.txt + @($(DIFF) --exclude=CVS results $(REF_DIR) && \ + echo Libfirm test successful ) || echo Libfirm test failed ; reference: realclean all $(RM) $(REF_DIR)/*.vcg