source: sources/test_regression/11062007/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: 869 bytes
Line 
1
2include ../env.mk
3RES1 = systemcass_a_nodynamiclink_10.txt
4RES2 = systemcass_p_nodynamiclink_10.txt
5RES3 = systemcass_m_nodynamiclink_10.txt
6RES4 = systemcass_dynamiclink_10.txt
7ERASE = $(RES1) $(RES2) $(RES3) $(RES4)
8include ../Makefile.common
9
10test: $(SC_CASS)
11        @echo -ne "| Testing $$(basename $$(pwd)): " ;
12        @(./$(EXE_SCASS) --a --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES1)
13        @(./$(EXE_SCASS) --p --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES2)
14        @(./$(EXE_SCASS) --m --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES3)
15        @(./$(EXE_SCASS) 10 2> /dev/null ) | tail -n 5 > $(RES4)
16        @if diff $(RES1) $(RES2) > /dev/null ; then \
17                if diff $(RES1) $(RES3) > /dev/null ; then \
18                        if diff $(RES1) $(RES4) > /dev/null ; then \
19                                echo "OK" ; \
20                        else \
21                                echo "KO" ; \
22                        fi ; \
23                else \
24                        echo "KO" ; \
25                fi ; \
26        else \
27                echo "KO" ; \
28        fi ;
29
30
Note: See TracBrowser for help on using the repository browser.