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