source: sources/test_regression/25032005/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: 861 bytes
Line 
1
2include ../env.mk
3SIGNAL_GRAPH = signal_graph.dot
4PROCESS_ORDER = process_order.dot
5MODULE_GRAPH = module_graph.dot
6SIGNAL_ORDER = signal_order.txt
7ERASE = $(SIGNAL_GRAPH) $(PROCESS_ORDER) $(SIGNAL_ORDER) $(MODULE_GRAPH)
8include ../Makefile.common
9
10SIGNAL_GRAPH_REF = signal_graph_ref.dot
11PROCESS_ORDER_REF = process_order_ref.dot
12SIGNAL_ORDER_REF = signal_order_ref.txt
13
14test : all
15        $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ;
16        $(SILENCE)./$(EXE_SC) 2> /dev/null || res=1 ; \
17        ./$(EXE_SCASS) --p --t 2> /dev/null || res=1 ; \
18        (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \
19        (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_REF) -) > /dev/null || res=1 ; \
20        diff $(SIGNAL_ORDER_REF) $(SIGNAL_ORDER) > /dev/null || res=1 ;\
21        if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ;
22       
Note: See TracBrowser for help on using the repository browser.