[55] | 1 | |
---|
[1] | 2 | include ../env.mk |
---|
[55] | 3 | SIGNAL_GRAPH = signal_graph.dot |
---|
| 4 | MODULE_GRAPH = module_graph.dot |
---|
| 5 | PORT_GRAPH = port_graph.dot |
---|
| 6 | PROCESS_ORDER = process_order.dot |
---|
| 7 | SIGNAL_ORDER = signal_order.txt |
---|
| 8 | ERASE = $(SIGNAL_GRAPH) $(MODULE_GRAPH) $(PORT_GRAPH) $(PROCESS_ORDER) $(SIGNAL_ORDER) |
---|
| 9 | include ../Makefile.common |
---|
[1] | 10 | |
---|
[55] | 11 | MODULE_GRAPH_REF = module_graph_cass_ref.dot |
---|
| 12 | PORT_GRAPH_REF = port_graph_ref.dot |
---|
| 13 | SIGNAL_GRAPH_REF = signal_graph_ref.dot |
---|
| 14 | PROCESS_ORDER_M_REF = process_order_mouchard_ref.dot |
---|
| 15 | PROCESS_ORDER_B_REF = process_order_buchmann_ref.dot |
---|
[1] | 16 | |
---|
[55] | 17 | test: $(EXE_SCASS) |
---|
[56] | 18 | $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; \ |
---|
[55] | 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 ; \ |
---|
[56] | 29 | if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; |
---|
[1] | 30 | |
---|
| 31 | |
---|