Ignore:
Timestamp:
May 29, 2013, 6:05:44 PM (11 years ago)
Author:
meunier
Message:
  • Tried to fix a problem with echo
  • Started to resolve some tests failing (often because of the test itself)
Location:
sources/test_regression/14092005
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sources/test_regression/14092005/Makefile

    r55 r56  
    99TRACE_REF = trace_file_reference.vcd
    1010
     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
    1113test: 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)" ; \
    2321        else \
    24                 echo "KO" ; \
     22                $(ECHO) -e "$(KO) 2" ; \
    2523        fi ;
    2624
  • sources/test_regression/14092005/system.cpp

    r55 r56  
    1010
    1111struct hard : sc_module {
    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;
     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;
    1717
    1818    void fg() {
     
    4949    hard a("a");
    5050
    51     a.clk   (clk1);
     51    a.clk(clk1);
    5252    a.resetn(resetn);
    5353
     
    5656
    5757    /* Open trace file */
    58     sc_trace_file *system_trace_file;
    59     system_trace_file = sc_create_vcd_trace_file ("trace_file");
     58    sc_trace_file * system_trace_file;
     59    system_trace_file = sc_create_vcd_trace_file("trace_file");
    6060
    6161    /* clks waveforms are always useful */
Note: See TracChangeset for help on using the changeset viewer.