Changeset 56 for sources/test_regression
- Timestamp:
- May 29, 2013, 6:05:44 PM (11 years ago)
- Location:
- sources/test_regression
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/02052006/Makefile
r55 r56 4 4 5 5 test: all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) --p > $(LOG_SCASS) 2> /dev/null ;8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo-e "$(OK)" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) --p > $(LOG_SCASS) 2> /dev/null ; 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 11 else \ 12 echo-e "$(KO)" ; \12 $(ECHO) -e "$(KO)" ; \ 13 13 fi ; 14 14 -
sources/test_regression/04052005/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/05092005/Makefile
r55 r56 5 5 6 6 test: $(EXE_SCASS) 7 @echo-ne "| Testing $$(basename $$(pwd)): " ;8 @./$<2> /dev/null ;9 @if [ $$? -eq 0 ] ; then echo "KO" ; else echo "OK" ; fi ;7 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 8 $(SILENCE)./$(EXE_SCASS) 2> /dev/null ; 9 $(SILENCE)if [ $$? -eq 0 ] ; then $(ECHO) -e "$(KO)" ; else $(ECHO) -e "$(OK)" ; fi ; 10 10 11 11 -
sources/test_regression/05092005/system.cpp
r55 r56 3 3 4 4 #include "test.h" 5 6 /* 7 * Test for detecting an overflow in an array of sc_signal. 8 * I (QM) am not sure it is possible to detect that actually... 9 */ 5 10 6 11 using namespace std; … … 21 26 a.i(s[0]); 22 27 a.o(s[1]); 23 b.i(s[5]); // Wrong array index . This BUG should be detected.28 b.i(s[5]); // Wrong array index 24 29 b.o(s[2]); 25 30 -
sources/test_regression/07052005/Makefile
r55 r56 4 4 5 5 test: all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null ;8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null ; 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/07052005/system.cpp
r55 r56 21 21 sc_uint<16> g; 22 22 sc_uint<8> h; 23 sc_uint<32> i; 24 sc_uint<17> j; 23 25 24 26 b = 0x7; 25 27 c1 = 0x3; 26 28 c2 = 0x1; 27 d = 0xA 0;29 d = 0xA; 28 30 e = 0x11; 29 31 g = 0xabcd; 30 32 31 // bit vector concatenation and boolean concatenation 32 a = (b, (c1 | c2), d & (b, c1), e); 33 // Concatenation 34 a = (b, (c1 | c2), d & (b, c1), e); 35 j = (b, c1, d , e); 33 36 34 37 f = b.range (0, 0); 35 36 38 h = g.range (11, 4); 39 i = e; 37 40 38 41 cout << "a = 0x" << hex << (unsigned int) a << " = " << a.to_string(SC_BIN) << "\n"; … … 45 48 //ASSERT(h.to_string(SC_BIN) == "0b010111100"); 46 49 47 cout << "Test OK.\n"; 50 cout << "i = 0x" << hex << (unsigned int) i << " = " << i.to_string(SC_BIN) << "\n"; 51 cout << "j = 0x" << hex << (unsigned int) j << " = " << j.to_string(SC_BIN) << "\n"; 48 52 49 53 return 0; -
sources/test_regression/07122006a/Makefile
r55 r56 4 4 include ../Makefile.common 5 5 6 # Checks compilation always succeeds here) 6 7 7 test : all 8 @echo -ne "| Testing $$(basename $$(pwd)): " ; 9 @./system_systemcass.x > $(LOG_SCASS) 2> /dev/null 10 @./system_systemc.x > $(LOG_SC) 2> /dev/null 11 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 12 echo "OK" ; \ 13 else echo "KO" ; \ 14 fi ; 15 8 test : $(EXE_SCASS) 9 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 10 $(SILENCE)./system_systemcass.x > $(LOG_SCASS) 2> /dev/null ; \ 11 $(ECHO) -e "$(OK)" ; \ 16 12 13 -
sources/test_regression/07122006a/system.cpp
r55 r56 17 17 sc_clock clk("clk"); 18 18 sc_signal<bool> resetn("resetn"); 19 sc_signal<int> 20 sc_signal<int> 19 sc_signal<int> in ("in"); 20 sc_signal<int> out("out"); 21 21 22 22 test test("test"); -
sources/test_regression/07122006b/Makefile
r55 r56 2 2 include ../Makefile.common 3 3 4 # Checks compilation, always succeeds here 4 5 5 test : all6 test : $(EXE_SCASS) 6 7 @echo -ne "| Testing $$(basename $$(pwd)): " ; 7 @./system_systemcass.x > $(LOG_SCASS) 2> /dev/null 8 @./system_systemc.x > $(LOG_SC) 2> /dev/null 9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 echo "OK" ; \ 11 else echo "KO" ; \ 12 fi ; 8 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 9 @echo -e "$(OK)" ; \ 13 10 14 11 -
sources/test_regression/08092005/Makefile
r55 r56 3 3 4 4 test: $(EXE_SCASS) 5 @echo-ne "| Testing $$(basename $$(pwd)): " ;6 @./$(EXE_SCASS) --p --t 2> /dev/null ; \5 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 6 $(SILENCE)./$(EXE_SCASS) --p --t 2> /dev/null ; \ 7 7 if [ $$? -eq 197 ] ; then \ 8 8 if diff methodprocess_graph.dot methodprocess_graph_reference.dot > /dev/null ; then \ 9 9 if tail -n +3 reduced_signal_graph.dot | diff reduced_signal_graph_reference.dot - > /dev/null ; then \ 10 echo "OK" ; \10 $(ECHO) -e "$(OK)" ; \ 11 11 else \ 12 echo "KO1" ; \12 $(ECHO) -e "$(KO) 1" ; \ 13 13 fi ; \ 14 14 else \ 15 echo "KO2" ; \15 $(ECHO) -e "$(KO) 2" ; \ 16 16 fi ; \ 17 17 else \ 18 echo "KO3" ; \18 $(ECHO) -e "$(KO) 3" ; \ 19 19 fi ; 20 20 -
sources/test_regression/09092005a/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/09092005a/system.cpp
r55 r56 16 16 17 17 sc_uint<ADDRSIZE> LINEADDR_MASK = ~(((sc_uint<ADDRSIZE>) ~0x0) >> (ADDRSIZE - OFFSETSIZE - BPFSIZE)); 18 cout << "LINEADDR_MASK == " << std::hex << LINEADDR_MASK << endl;18 printf("LINEADDR_MASK == 0x%08x", (unsigned int) LINEADDR_MASK); 19 19 20 20 return 0; -
sources/test_regression/09092005b/Makefile
r55 r56 3 3 4 4 test : $(EXE_SCASS) 5 @echo-ne "| Testing $$(basename $$(pwd)): " ; \5 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; \ 6 6 ./$(EXE_SCASS) 2> /dev/null ; 7 @if tail -n +8 trace_file.vcd | diff trace_file_reference.vcd - ; then \8 echo "OK" ; \7 $(SILENCE)if tail -n +8 trace_file.vcd | diff trace_file_reference.vcd - ; then \ 8 $(ECHO) -e "$(OK)" ; \ 9 9 else \ 10 echo "KO" ; \10 $(ECHO) -e "$(KO)" ; \ 11 11 fi ; 12 12 -
sources/test_regression/09092005c/Makefile
r55 r56 4 4 5 5 test: all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/09092005c/system.cpp
r55 r56 32 32 void f() { 33 33 int t = (int) (sc_time_stamp().to_double()); 34 #ifdef SYSTEMCASS_SPECIFIC 35 t = t * 1000; 36 #endif 34 37 o.write(t); 35 38 } … … 38 41 generator(sc_module_name) : clk("clk"), o("o") { 39 42 SC_METHOD(f); 40 sensitive << clk. neg();43 sensitive << clk.pos(); 41 44 dont_initialize(); 42 45 } … … 60 63 g("generator"), 61 64 obs1("observer1"), 62 obs2("observer2") {65 obs2("observer2") { 63 66 g.clk(clk); 64 67 obs1.clk(clk); … … 74 77 75 78 int sc_main (int argc, char ** argv) { 76 sc_clock clk("top_clk");79 sc_clock clk("top_clk", sc_time(1, sc_core::SC_NS)); 77 80 sc_signal<int> out("top_out"); 78 81 … … 80 83 81 84 t.clk(clk); 82 t.o 85 t.o(out); 83 86 84 87 // QM : pourquoi est-ce tout commenté ?? -
sources/test_regression/11062007/Makefile
r55 r56 9 9 10 10 test: $(SC_CASS) 11 @echo-ne "| Testing $$(basename $$(pwd)): " ;12 @(./$(EXE_SCASS) --a --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES1)13 @(./$(EXE_SCASS) --p --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES2)14 @(./$(EXE_SCASS) --m --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES3)15 @(./$(EXE_SCASS) 10 2> /dev/null ) | tail -n 5 > $(RES4)16 @if diff $(RES1) $(RES2) > /dev/null ; then \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 17 if diff $(RES1) $(RES3) > /dev/null ; then \ 18 18 if diff $(RES1) $(RES4) > /dev/null ; then \ 19 echo "OK" ; \19 $(ECHO) -e "$(OK)" ; \ 20 20 else \ 21 echo "KO" ; \21 $(ECHO) -e "$(KO) 1" ; \ 22 22 fi ; \ 23 23 else \ 24 echo "KO" ; \24 $(ECHO) -e "$(KO) 2" ; \ 25 25 fi ; \ 26 26 else \ 27 echo "KO" ; \27 $(ECHO) -e "$(KO) 3" ; \ 28 28 fi ; 29 29 -
sources/test_regression/14092005/Makefile
r55 r56 9 9 TRACE_REF = trace_file_reference.vcd 10 10 11 # Les traces SC et SCASS diffÚrent (maj de o1 sur le front montant dans SCASS), du coup on ne vérifie que la trace SystemCass 12 11 13 test: all 12 @echo -ne "| Testing $$(basename $$(pwd)): " ; 13 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 14 @mv $(TRACE) $(TRACE1) 15 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null 16 @mv $(TRACE) $(TRACE2) 17 @if tail -n +11 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 18 if tail -n +11 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \ 19 echo "OK" ; \ 20 else \ 21 echo "KO" ; \ 22 fi ; \ 14 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 15 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 16 $(SILENCE)mv $(TRACE) $(TRACE1) 17 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 18 $(SILENCE)mv $(TRACE) $(TRACE2) 19 $(SILENCE)if tail -n +11 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 20 $(ECHO) -e "$(OK)" ; \ 23 21 else \ 24 echo "KO" ; \22 $(ECHO) -e "$(KO) 2" ; \ 25 23 fi ; 26 24 -
sources/test_regression/14092005/system.cpp
r55 r56 10 10 11 11 struct hard : sc_module { 12 sc_in_clk 13 sc_in<bool> 14 sc_in <int> 15 sc_out<int> 16 sc_signal 12 sc_in_clk clk; 13 sc_in<bool> resetn; 14 sc_in <int> i1; 15 sc_out<int> o1; 16 sc_signal<int> r1; 17 17 18 18 void fg() { … … 49 49 hard a("a"); 50 50 51 a.clk 51 a.clk(clk1); 52 52 a.resetn(resetn); 53 53 … … 56 56 57 57 /* Open trace file */ 58 sc_trace_file * system_trace_file;59 system_trace_file = sc_create_vcd_trace_file 58 sc_trace_file * system_trace_file; 59 system_trace_file = sc_create_vcd_trace_file("trace_file"); 60 60 61 61 /* clks waveforms are always useful */ -
sources/test_regression/15042009a/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/15042009b/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/15042009c/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/15062006/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/15092005a/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/15092005b/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 10 ./$(EXE_SCASS) --p --d 2> /dev/null ; \ 11 11 if [ $$? -eq 37 ] ; then \ 12 echo "OK" ; \12 $(ECHO) -e "$(OK)" ; \ 13 13 else \ 14 echo "KO" ; \14 $(ECHO) -e "$(KO) 1" ; \ 15 15 fi ; \ 16 16 else \ 17 echo "KO" ; \17 $(ECHO) -e "$(KO) 2" ; \ 18 18 fi ; 19 19 -
sources/test_regression/15092005c/Makefile
r55 r56 5 5 6 6 test: $(EXE_SCASS) 7 @echo-ne "| Testing $$(basename $$(pwd)): " ;8 @./$< 2> /dev/null ; \9 if [ $$? -eq 165 ] ; then echo "OK" ; else echo "KO" ; fi ;7 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 8 $(SILENCE)./$< 2> /dev/null ; \ 9 if [ $$? -eq 165 ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 10 10 11 11 -
sources/test_regression/15092005d/Makefile
r55 r56 5 5 6 6 test: $(EXE_SCASS) 7 @echo-ne "| Testing $$(basename $$(pwd)): " ;8 @./$< 2> /dev/null ; \9 if [ $$? -eq 101 ] ; then echo "OK" ; else echo "KO" ; fi ;7 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 8 $(SILENCE)./$< 2> /dev/null ; \ 9 if [ $$? -eq 101 ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 10 10 11 11 -
sources/test_regression/16022007/Makefile
r55 r56 5 5 6 6 test : all 7 @echo-ne "| Testing $$(basename $$(pwd)): " ;8 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null9 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null10 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \11 echo "OK" ; \12 else echo "KO" ; \7 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 8 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 9 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 10 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 11 $(ECHO) -e "$(OK)" ; \ 12 else $(ECHO) -e "$(KO)" ; \ 13 13 fi ; 14 14 -
sources/test_regression/16062005a/Makefile
r55 r56 8 8 9 9 test : $(EXE_SCASS) 10 @echo-ne "| Testing $$(basename $$(pwd)): " ;11 @./$(EXE_SCASS) $(HIERARCHY) 2> /dev/null12 @if diff $(HIERARCHY) $(HIERARCHY_REF) > /dev/null ; then \13 echo "OK" ; \14 else echo "KO" ; \10 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 11 $(SILENCE)./$(EXE_SCASS) $(HIERARCHY) 2> /dev/null 12 $(SILENCE)if diff $(HIERARCHY) $(HIERARCHY_REF) > /dev/null ; then \ 13 $(ECHO) -e "$(OK)" ; \ 14 else $(ECHO) -e "$(KO)" ; \ 15 15 fi ; 16 16 -
sources/test_regression/16112005a/Makefile
r55 r56 3 3 4 4 test : all 5 @echo-ne "| Testing $$(basename $$(pwd)): " ;6 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null7 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null8 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \9 echo "OK" ; \10 else echo "KO" ; \5 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 6 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 7 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 8 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 9 $(ECHO) -e "$(OK)" ; \ 10 else $(ECHO) -e "$(KO)" ; \ 11 11 fi ; 12 12 13 13 14 #./system_systemcass.x || eval ${failcom} ; \15 ./system2_systemcass.x ; \16 if [ $$? -ne 29 ] ; then eval ${failcom} ; fi ; \17 ./system3_systemcass.x ; \18 if [ $$? -ne 29 ] ; then eval ${failcom} ; fi ; \19 echo Test OK.20 -
sources/test_regression/16112005b/Makefile
r55 r56 3 3 4 4 test : $(EXE_SCASS) 5 @echo-ne "| Testing $$(basename $$(pwd)): " ;6 @./$(EXE_SCASS) 2> /dev/null ; \7 if [ $$? -ne 29 ] ; then echo "KO" ; else echo "OK" ; fi5 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 6 $(SILENCE)./$(EXE_SCASS) 2> /dev/null ; \ 7 if [ $$? -ne 29 ] ; then $(ECHO) -e "$(KO)" ; else $(ECHO) -e "$(OK)" ; fi 8 8 9 9 -
sources/test_regression/16112005c/Makefile
r55 r56 3 3 4 4 test : $(EXE_SCASS) 5 @echo-ne "| Testing $$(basename $$(pwd)): " ;6 @./$(EXE_SCASS) 2> /dev/null ; \7 if [ $$? -ne 29 ] ; then echo "KO" ; else echo "OK" ; fi5 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 6 $(SILENCE)./$(EXE_SCASS) 2> /dev/null ; \ 7 if [ $$? -ne 29 ] ; then $(ECHO) -e "$(KO)" ; else $(ECHO) -e "$(OK)" ; fi 8 8 9 9 -
sources/test_regression/16122005/Makefile
r55 r56 8 8 9 9 test : $(EXE_SCASS) 10 @echo-ne "| Testing $$(basename $$(pwd)): " ;11 @./$(EXE_SCASS) 2> /dev/null12 @if diff $(RESULTS) $(RESULTS_REF) > /dev/null ; then \13 echo "OK" ; \14 else echo "KO" ; \10 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 11 $(SILENCE)./$(EXE_SCASS) 2> /dev/null 12 $(SILENCE)if diff $(RESULTS) $(RESULTS_REF) > /dev/null ; then \ 13 $(ECHO) -e "$(OK)" ; \ 14 else $(ECHO) -e "$(KO)" ; \ 15 15 fi ; 16 16 -
sources/test_regression/17022006/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/17032005/Makefile
r55 r56 10 10 11 11 test: all 12 @echo-ne "| Testing $$(basename $$(pwd)): " ;13 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null14 @mv $(TRACE) $(TRACE1)15 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null16 @mv $(TRACE) $(TRACE2)17 @if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \12 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 13 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 14 $(SILENCE)mv $(TRACE) $(TRACE1) 15 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 16 $(SILENCE)mv $(TRACE) $(TRACE2) 17 $(SILENCE)if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 18 18 if tail -n +8 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \ 19 echo "OK" ; \19 $(ECHO) -e "$(OK)" ; \ 20 20 else \ 21 echo "KO" ; \21 $(ECHO) -e "$(KO) 1" ; \ 22 22 fi ; \ 23 23 else \ 24 echo "KO" ; \24 $(ECHO) -e "$(KO) 2" ; \ 25 25 fi ; 26 26 -
sources/test_regression/19042005/Makefile
r55 r56 10 10 11 11 test: all 12 @echo-ne "| Testing $$(basename $$(pwd)): " ;13 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null14 @mv $(TRACE) $(TRACE1)15 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null16 @mv $(TRACE) $(TRACE2)17 @if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \12 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 13 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 14 $(SILENCE)mv $(TRACE) $(TRACE1) 15 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 16 $(SILENCE)mv $(TRACE) $(TRACE2) 17 $(SILENCE)if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 18 18 if tail -n +8 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \ 19 echo "OK" ; \19 $(ECHO) -e "$(OK)" ; \ 20 20 else \ 21 echo "KO" ; \21 $(ECHO) -e "$(KO) 1" ; \ 22 22 fi ; \ 23 23 else \ 24 echo "KO" ; \24 $(ECHO) -e "$(KO) 2" ; \ 25 25 fi ; 26 26 -
sources/test_regression/20122006/Makefile
r55 r56 16 16 17 17 test: $(EXE_SCASS) 18 @echo-ne "| Testing $$(basename $$(pwd)): " ; \18 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; \ 19 19 ./$(EXE_SCASS) --a --t --k 2> /dev/null; \ 20 20 (tail -n +3 $(MODULE_GRAPH) | diff $(MODULE_GRAPH_REF) -) > /dev/null || res=1 ; \ … … 27 27 (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \ 28 28 (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_B_REF) -) > /dev/null || res=1 ; \ 29 if [ x"$$res" = x ] ; then echo "OK" ; else echo "KO" ; fi ;29 if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 30 30 31 31 -
sources/test_regression/21062005/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/24082009/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 10 time_scass=$$(/usr/bin/time -f "%e" 2>&1 ./$(EXE_SCASS) --nodynamiclink | tail -n 1) ; \ 11 11 time_sc=$$(/usr/bin/time -f "%e" 2>&1 ./$(EXE_SC) | tail -n 1) ; \ 12 echo "OK(time SystemCass: $$time_scass - time SystemC : $$time_sc)" ; \13 else echo "KO" ; \12 $(ECHO) -e "$(OK) (time SystemCass: $$time_scass - time SystemC : $$time_sc)" ; \ 13 else $(ECHO) -e "$(KO)" ; \ 14 14 fi ; 15 15 -
sources/test_regression/25032005/Makefile
r55 r56 13 13 14 14 test : all 15 @echo-ne "| Testing $$(basename $$(pwd)): " ;16 @./$(EXE_SC) 2> /dev/null || res=1 ; \15 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 16 $(SILENCE)./$(EXE_SC) 2> /dev/null || res=1 ; \ 17 17 ./$(EXE_SCASS) --p --t 2> /dev/null || res=1 ; \ 18 18 (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \ 19 19 (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_REF) -) > /dev/null || res=1 ; \ 20 20 diff $(SIGNAL_ORDER_REF) $(SIGNAL_ORDER) > /dev/null || res=1 ;\ 21 if [ x"$$res" = x ] ; then echo "OK" ; else echo "KO" ; fi ;21 if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 22 22 -
sources/test_regression/28102005/Makefile
r55 r56 4 4 5 5 test : all 6 @echo-ne "| Testing $$(basename $$(pwd)): " ;7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \10 echo "OK" ; \11 else echo "KO" ; \6 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 7 $(SILENCE)./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 $(SILENCE)./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 $(SILENCE)if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 $(ECHO) -e "$(OK)" ; \ 11 else $(ECHO) -e "$(KO)" ; \ 12 12 fi ; 13 13 -
sources/test_regression/29032005/Makefile
r55 r56 15 15 16 16 test : $(EXE_SCASS) 17 @echo-ne "| Testing $$(basename $$(pwd)): " ;18 @./$(EXE_SCASS) --p --t --k 2> /dev/null || res=1 ; \17 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; 18 $(SILENCE)./$(EXE_SCASS) --p --t --k 2> /dev/null || res=1 ; \ 19 19 (tail -n +3 $(SIGNAL_GRAPH) | diff $(SIGNAL_GRAPH_REF) -) > /dev/null || res=1 ; \ 20 20 (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_REF) -) > /dev/null || res=1 ; \ 21 21 (tail -n +3 $(PORT_GRAPH) | diff $(PORT_GRAPH_REF) -) > /dev/null || res=1 ; \ 22 22 diff $(SIGNAL_ORDER_REF) $(SIGNAL_ORDER) > /dev/null || res=1 ; \ 23 if [ x"$$res" = x ] ; then echo "OK" ; else echo "KO" ; fi ;23 if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 24 24 25 25 -
sources/test_regression/30032005a/Makefile
r55 r56 15 15 16 16 test : $(EXE_SCASS) 17 @echo-ne "| Testing $$(basename $$(pwd)): " ; \17 $(SILENCE)$(ECHO) -ne "| Testing $$(basename $$(pwd)): " ; \ 18 18 ./$(EXE_SCASS) --t 2> /dev/null || res=1 ; \ 19 19 (tail -n +3 $(MODULE_GRAPH) | diff $(MODULE_GRAPH_REF) -) > /dev/null || res=1 ; \ … … 22 22 (tail -n +3 $(PROCESS_ORDER) | diff $(PROCESS_ORDER_REF) -) > /dev/null || res=1 ; \ 23 23 diff $(SIGNAL_ORDER_REF) $(SIGNAL_ORDER) > /dev/null || res=1 ; \ 24 if [ x"$$res" = x ] ; then echo "OK" ; else echo "KO" ; fi ;24 if [ x"$$res" = x ] ; then $(ECHO) -e "$(OK)" ; else $(ECHO) -e "$(KO)" ; fi ; 25 25 26 26 -
sources/test_regression/Makefile
r55 r56 50 50 17022006 \ 51 51 # 52 53 54 ifndef SYSTEMC 55 $(error Please set your SYSTEMC environment variable on the systemc directory root) 56 endif 57 ifndef SYSTEMCASS 58 $(error Please set your SYSTEMCASS environment variable on the SystemCass directory root) 59 endif 60 52 61 53 62 DIR = \ -
sources/test_regression/Makefile.common
r55 r56 23 23 $(EXE_SC): $(OBJ_SC) $(SYSTEMC_LIB) 24 24 @echo "| $@" 25 @$(CXX) -o $@ $(OBJ_SC) $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)25 $(SILENCE)$(CXX) -o $@ $(OBJ_SC) $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT) 26 26 27 27 $(EXE_SCASS): $(OBJ_SCASS) $(SYSTEMCASS_LIB) 28 28 @echo "| $@" 29 @$(CXX) -o $@ $(OBJ_SCASS) $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)29 $(SILENCE)$(CXX) -o $@ $(OBJ_SCASS) $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT) 30 30 31 31 -include Makefile.deps … … 33 33 %_systemc.o: %.cpp 34 34 @echo "| $@" 35 @$(CXX) $(CFLAGS_SYSTEMC) -MM $< > Makefile.deps36 @$(CXX) $(CFLAGS_SYSTEMC) -c $< -o $@35 $(SILENCE)$(CXX) $(CFLAGS_SYSTEMC) -MM $< > Makefile.deps 36 $(SILENCE)$(CXX) $(CFLAGS_SYSTEMC) -c $< -o $@ 37 37 38 38 %_systemcass.o: %.cpp 39 39 @echo "| $@" 40 @$(CXX) $(CFLAGS_SYSTEMCASS) -MM $< > Makefile.deps41 @$(CXX) $(CFLAGS_SYSTEMCASS) -c $< -o $@40 $(SILENCE)$(CXX) $(CFLAGS_SYSTEMCASS) -MM $< > Makefile.deps 41 $(SILENCE)$(CXX) $(CFLAGS_SYSTEMCASS) -c $< -o $@ 42 42 43 43 clean : 44 44 @echo "| Cleaning $$(basename $$(pwd))" 45 @rm -f Makefile.deps46 @rm -f *.o47 @rm -f $(LOG)48 @rm -f methodprocess_graph.dot reduced_signal_graph.dot signal_order.txt signal_graph.dot port_graph.dot trace_file.vcd49 @rm -f $(EXE) $(OBJECTS) $(ERASE)45 $(SILENCE)rm -f Makefile.deps 46 $(SILENCE)rm -f *.o 47 $(SILENCE)rm -f $(LOG) 48 $(SILENCE)rm -f methodprocess_graph.dot reduced_signal_graph.dot signal_order.txt signal_graph.dot port_graph.dot trace_file.vcd 49 $(SILENCE)rm -f $(EXE) $(OBJECTS) $(ERASE) 50 50 -
sources/test_regression/env.mk
r55 r56 1 1 2 SYSTEMCASS = $(HOME)/src/systemcass/sandbox_test/objdir/3 SYSTEMC = /users/outil/soc/systemc/sc22-644 2 5 TARGET_ARCH 3 TARGET_ARCH = linux64 6 4 7 5 ifeq (${TARGET_ARCH},Darwin) … … 49 47 ${DYNAMICLIB_FLAG} $(SYSTEMCASS_LIB) ${EFENCE} 50 48 49 ECHO = /bin/echo 50 SILENCE = @ 51 51 52 ifndef SYSTEMC53 $(error SYSTEMC is not defined.)54 endif55 ifndef SYSTEMCASS56 $(error SYSTEMCASS is not defined.)57 endif58 59 60
Note: See TracChangeset
for help on using the changeset viewer.