Ignore:
Timestamp:
May 28, 2013, 11:17:14 AM (11 years ago)
Author:
meunier
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/test_regression/17022006/Makefile

    r15 r55  
     1
    12include ../env.mk
     3include ../Makefile.common
    24
    3 SOCVIEW_INC    = ${SOCVIEW}/include
    4 SOCVIEW_LIB    = ${SOCVIEW}/lib-linux/libsystemc.a
    5 CFLAGS_SOCVIEW = ${CFLAGS} -DSOCVIEW -I${SOCVIEW_INC}
    6 LFLAGS_SOCVIEW = ${LFLAGS} -ltermcap -lreadline ${SOCVIEW_LIB}
     5test : all
     6        @echo -ne "| Testing $$(basename $$(pwd)): " ;
     7        @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null
     8        @./$(EXE_SC) > $(LOG_SC) 2> /dev/null
     9        @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \
     10    echo "OK" ; \
     11    else echo "KO" ; \
     12    fi ;
    713
    8 SYSTEM    = system.cpp
    9 EXE_SCASS = $(SYSTEM:.cpp=_systemcass.x)
    10 EXE_SC    = $(SYSTEM:.cpp=_systemc.x)
    11 EXE_SVIEW = $(SYSTEM:.cpp=_socview.x)
    12 EXE       = ${EXE_SCASS} ${EXE_SVIEW} ${EXE_SC}
    13 OBJECTS   = $(EXE:.x=.o)
    14 LINKS     = $(OBJECTS:.o=.cpp)
    1514
    16 TEST1_DAT = \
    17            test_socview_1.dat test_socview_1_reloaded.dat   \
    18            test_socview_2.dat test_socview_2_reloaded.dat   \
    19            test_socview_3.dat test_socview_3_reloaded.dat   \
    20            test_socview_3b.dat test_socview_3_reloaded_bis.dat   \
    21            test_socview_4.dat test_socview_4_reloaded.dat   \
    22            test_socview_5.dat test_socview_5_reloaded.dat   \
    23            test_socview_6.dat test_socview_6_reloaded.dat   \
    24            test_socview_7.dat test_socview_7_reloaded.dat   \
    25            test_socview_8.dat test_socview_8_reloaded.dat   \
    26            test_socview_9.dat test_socview_9_reloaded.dat   \
    27            test_socview_10.dat test_socview_10_reloaded.dat \
    28            test_socview_10b.dat \
    29 
    30 TEST2_DAT = test2_socview_10.dat \
    31             test2_socview_24a.dat test2_socview_24b.dat test2_socview_24c.dat \
    32             test2_socview_20a.dat test2_socview_20b.dat test2_systemcass_20.dat
    33 
    34 .SECONDARY:
    35 
    36 main : $(EXE)
    37 
    38 test : system_systemc.x system_systemcass.x system_socview.x
    39         ./system_systemc.x ; ./system_systemcass.x ;    ./system_socview.x
    40        
    41 %.gif : %.dot
    42         dot -Tgif -o $*.gif $*.dot
    43 
    44 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)
    45         $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC)
    46 
    47 %_systemcass.x : %_systemcass.o  $(SYSTEMCASS_LIB)
    48         $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS)
    49 
    50 %_socview.x : %_socview.o  $(SOCVIEW_LIB)
    51         $(CXX) -o $@ $*_socview.o $(LFLAGS_SOCVIEW)
    52 
    53 -include Makefile.deps
    54 
    55 %_systemc.cpp : %.cpp
    56         ln -s $*.cpp $*_systemc.cpp
    57 
    58 %_systemcass.cpp : %.cpp
    59         ln -s $*.cpp $*_systemcass.cpp
    60 
    61 %_socview.cpp : %.cpp
    62         ln -s $*.cpp $*_socview.cpp
    63 
    64 %_systemc.o : %_systemc.cpp
    65         $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps
    66         $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o
    67 
    68 %_systemcass.o : %_systemcass.cpp
    69         $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps
    70         $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o
    71 
    72 %_socview.o : %_socview.cpp
    73         $(CXX) $(CFLAGS_SOCVIEW) -MM $*_socview.cpp >> Makefile.deps
    74         $(CXX) $(CFLAGS_SOCVIEW) -c $*_socview.cpp -o $*_socview.o
    75 
    76 clean :
    77         rm -f Makefile.deps
    78         -rm -f *.o gmon.out *~
    79         -rm -f results
    80         -rm -f signal_order.txt module_order.dot signal_graph.dot
    81         -rm -f module_order.gif signal_graph.gif
    82         -rm -f $(EXE) $(OBJECTS)
    83         -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null
    84         -rm -f core*
    85         -rm -rf generated_by_systemcass
    86         -rm -rf system_systemcass.x.vcd system_systemc.x.vcd
    87        
Note: See TracChangeset for help on using the changeset viewer.