source: sources/test_regression/20122006/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: 1.4 KB
Line 
1
2include ../env.mk
3SIGNAL_GRAPH = signal_graph.dot
4MODULE_GRAPH = module_graph.dot
5PORT_GRAPH = port_graph.dot
6PROCESS_ORDER = process_order.dot
7SIGNAL_ORDER = signal_order.txt
8ERASE = $(SIGNAL_GRAPH) $(MODULE_GRAPH) $(PORT_GRAPH) $(PROCESS_ORDER) $(SIGNAL_ORDER)
9include ../Makefile.common
10
11MODULE_GRAPH_REF = module_graph_cass_ref.dot
12PORT_GRAPH_REF = port_graph_ref.dot
13SIGNAL_GRAPH_REF = signal_graph_ref.dot
14PROCESS_ORDER_M_REF = process_order_mouchard_ref.dot
15PROCESS_ORDER_B_REF = process_order_buchmann_ref.dot
16
17test: $(EXE_SCASS)
18        $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; \
19   ./$(EXE_SCASS) --a --t --k 2> /dev/null; \
20   (tail -n +3 $(MODULE_GRAPH) | diff $(MODULE_GRAPH_REF) -) > /dev/null || res=1 ; \
21        ./$(EXE_SCASS) --m --t --k 2> /dev/null; \
22   (tail -n +3 $(PORT_GRAPH) | diff $(PORT_GRAPH_REF) -) > /dev/null || res=1 ; \
23   (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \
24        (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_M_REF) > /dev/null -) || res=1 ; \
25        ./$(EXE_SCASS) --p --t --k 2> /dev/null; \
26   (tail -n +3 $(PORT_GRAPH) | diff $(PORT_GRAPH_REF) -) > /dev/null || res=1 ; \
27        (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \
28        (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_B_REF) -) > /dev/null || res=1 ; \
29   if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ;
30
31
Note: See TracBrowser for help on using the repository browser.