Changeset 1900

Show
Ignore:
Timestamp:
03/31/08 08:02:15 (9 months ago)
Author:
peter
Message:

source/TestAutoVec.cpp
source/TestMain.cpp
source/TestFlexArr.cpp
source/TestMultiArr.cpp
library

Remove unit tests and support library.

source/Makefile

Remove support for unit tests.

source/compiler_tests

Remove compiler tests for multi_arr.

Location:
branches/c08_branch
Files:
6 removed
1 modified

Legend:

Unmodified
Added
Removed
  • branches/c08_branch/source/Makefile

    r1898 r1900  
    1212 
    1313main := maincl.cpp 
    14 fullsource := ${notdir ${wildcard ${SRCDIR}/*.cpp}} 
    15 source := ${filter-out Test%,${fullsource}} 
    16 testsource := ${filter Test%,${fullsource}} 
     14source := ${notdir ${wildcard ${SRCDIR}/*.cpp}} 
    1715libsource := ${filter-out ${main},${source}} 
    1816includes := ${notdir ${wildcard ${SRCDIR}/*.h}} 
    1917objects := ${source:.cpp=.o} 
    2018libobjects := ${libsource:.cpp=.o} 
    21 testobjects := ${testsource:.cpp=.o} 
    2219 
    2320# include a configuration file if one exists (or carry on without 
     
    3330CXXDEPEND = g++ 
    3431 
    35 .PHONY: clean distclean depend test valgrind-test 
     32.PHONY: clean distclean depend 
    3633 
    3734# DEP_GOALS will be an empty string for targets that don't need Makefile.dep 
     
    9895        rm -f libcloudy.a 
    9996        rm -f cloudy.exe 
    100         rm -f runtests.exe 
    10197 
    10298distclean : 
     
    106102        rm -f libcloudy.a 
    107103        rm -f cloudy.exe 
    108         rm -f runtests.exe 
    109104        rm -f Makefile.dep 
    110105        rm -f ${SRCDIR}/Makefile.conf 
    111         rm -rf lib 
    112         rm -rf include 
    113         cd ${SRCDIR}/../library/UnitTest++ && $(MAKE) clean 
    114106 
    115107# ${source} ${includes} 
     
    118110        @cd ${SRCDIR}; \ 
    119111        ${CXXDEPEND} -MM -DMM ${CXXDEFINES} ${source} | sed "s/${presource}/${substname}/" > $(PWD)/Makefile.dep; \ 
    120         ${CXXDEPEND} -MM -DMM ${CXXDEFINES} ${testsource} | sed "s/${presource}/${substname}/" >> $(PWD)/Makefile.dep; \ 
    121112        ${CXXDEPEND} -MM -DMM ${CXXDEFINES} ${presource} | sed 's/\.o:/.h.gch:/' >> $(PWD)/Makefile.dep; 
    122113 
     
    131122        ${CXX} ${CXXFLAGS} -o $@ $< 
    132123 
    133 test: runtests.exe 
    134         ./runtests.exe 
    135  
    136 valgrind-test: runtests.exe 
    137         valgrind --leak-check=full --track-fds=yes ./runtests.exe 
    138  
    139 runtests.exe: ${testobjects} libcloudy.a 
    140         ${CXX} ${CXXFLAGS} -o $@ ${filter-out %.a, $^} \ 
    141         ${LDFLAGS} -L. -lcloudy -Llib -lUnitTest++ ${LDLIBS} 
    142  
    143 ${testobjects}: CXXFLAGS += -I${SRCDIR}/include/UnitTest++ 
    144  
    145 ${testobjects}: lib/libUnitTest++.a 
    146  
    147 lib/libUnitTest++.a: 
    148         cd ${SRCDIR}/../library/UnitTest++; \ 
    149         $(MAKE) clean; $(MAKE) CC=${CXX} CCFLAGS="${CXXFLAGS}"; \ 
    150         mkdir -p ${PWD}/lib ${PWD}/include ${PWD}/include/UnitTest++ \ 
    151         ${PWD}/include/UnitTest++/Posix ${PWD}/include/UnitTest++/Win32; \ 
    152         cp src/*.h ${PWD}/include/UnitTest++; \ 
    153         cp src/Win32/*.h ${PWD}/include/UnitTest++/Win32; \ 
    154         cp src/Posix/*.h ${PWD}/include/UnitTest++/Posix; \ 
    155         cp libUnitTest++.a ${PWD}/lib/ 
    156  
    157124# only include Makefile.dep when we really need it, this prevents unnecessary builds of Makefile.dep 
    158125ifneq (${DEP_GOALS},)