source: sources/test_regression/17032005/Makefile @ 55

Last change on this file since 55 was 55, checked in by meunier, 11 years ago

Tried to clean the test_regression directory:

  • Code formatting
  • Supressed warnings
  • Made comprehensible outputs
  • Factorized Makefiles

There's still a lot to do (many tests don't pass for either good or bad reasons)

File size: 611 bytes
Line 
1
2include ../env.mk
3TRACE1 = trace_file_scass.vcd
4TRACE2 = trace_file_systemc.vcd
5ERASE = $(TRACE1) $(TRACE2)
6include ../Makefile.common
7
8TRACE = trace_file.vcd
9TRACE_REF = trace_file_reference.vcd
10
11test: all
12        @echo -ne "| Testing $$(basename $$(pwd)): " ;
13        @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null
14        @mv $(TRACE) $(TRACE1)
15        @./$(EXE_SC) > $(LOG_SC) 2> /dev/null
16        @mv $(TRACE) $(TRACE2)
17        @if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \
18                if tail -n +8 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \
19                        echo "OK" ; \
20                else \
21                        echo "KO" ; \
22                fi ; \
23        else \
24                echo "KO" ; \
25        fi ;
26
27
28
Note: See TracBrowser for help on using the repository browser.