source: sources/test_regression/19042005/Makefile @ 57

Last change on this file since 57 was 56, checked in by meunier, 11 years ago
  • Tried to fix a problem with echo
  • Started to resolve some tests failing (often because of the test itself)
File size: 699 bytes
RevLine 
[55]1
[1]2include ../env.mk
[55]3TRACE1 = trace_file_scass.vcd
4TRACE2 = trace_file_systemc.vcd
5ERASE = $(TRACE1) $(TRACE2)
6include ../Makefile.common
[1]7
[55]8TRACE = trace_file.vcd
9TRACE_REF = trace_file_reference.vcd
[1]10
[55]11test: all
[56]12        $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ;
13        $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null
14        $(SILENCE)mv $(TRACE) $(TRACE1)
15        $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null
16        $(SILENCE)mv $(TRACE) $(TRACE2)
17        $(SILENCE)if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \
[55]18                if tail -n +8 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \
[56]19                        $(ECHO) -e "$(OK)" ; \
[55]20                else \
[56]21                        $(ECHO) -e "$(KO) 1" ; \
[55]22                fi ; \
23        else \
[56]24                $(ECHO) -e "$(KO) 2" ; \
[55]25        fi ;
[1]26
27       
Note: See TracBrowser for help on using the repository browser.