source: sources/test_regression/11062007/Makefile @ 56

Last change on this file since 56 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: 968 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        $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ;
12        $(SILENCE)(./$(EXE_SCASS) --a --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES1)
13        $(SILENCE)(./$(EXE_SCASS) --p --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES2)
14        $(SILENCE)(./$(EXE_SCASS) --m --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES3)
15        $(SILENCE)(./$(EXE_SCASS) 10 2> /dev/null ) | tail -n 5 > $(RES4)
16        $(SILENCE)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) -e "$(OK)" ; \
20                        else \
21                                $(ECHO) -e "$(KO) 1" ; \
22                        fi ; \
23                else \
24                        $(ECHO) -e "$(KO) 2" ; \
25                fi ; \
26        else \
27                $(ECHO) -e "$(KO) 3" ; \
28        fi ;
29
30
Note: See TracBrowser for help on using the repository browser.