Changeset 1717 for trunk/test_more


Ignore:
Timestamp:
Nov 28, 2010 12:19:17 AM (9 years ago)
Author:
bradbell
Message:

trunk: ndebug.cpp test compiles, but not use, ADFun<double> copy operation

configure: update package version, and autoconf version.
makefile.am: add ndebug.cpp to list of source files and compile with NDEBUG.
makefile.in: changes automatically transfered from makefile.am.
test_more.cpp: add ndebug to list of tests.
test_one.sh.in: treat ndebug.cpp as special case with NDEBUG defined.
test_more.vcproj: add ndebug to list of tests.
makefile.in: update corresponding makefile.am.
whats_new_10.omh: user's view of changes.
error_handler.hpp: exit even if NDEBUG is defined.

Location:
trunk/test_more
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/makefile.am

    r1644 r1717  
    8686        mul_level.cpp \
    8787        mul_zero_one.cpp \
     88        ndebug.cpp \
    8889        near_equal_ext.cpp \
    8990        neg.cpp \
     
    117118        vec_unary.cpp
    118119
     120ndebug.$(OBJEXT): ndebug.cpp
     121        $(CXXCOMPILE) -DNDEBUG -c ndebug.cpp -o ndebug.$(OBJEXT)
     122
    119123test: test_more$(EXEEXT)
    120124        ./test_more | tee test.log
  • trunk/test_more/makefile.in

    r1704 r1717  
    5252        for_sparse_jac.cpp forward.cpp from_base.cpp fun_check.cpp \
    5353        jacobian.cpp log.cpp log_10.cpp mul.cpp mul_eq.cpp \
    54         mul_level.cpp mul_zero_one.cpp near_equal_ext.cpp neg.cpp \
    55         ode_err_control.cpp optimize.cpp poly.cpp pow.cpp pow_int.cpp \
    56         romberg_one.cpp rosen_34.cpp runge_45.cpp reverse.cpp \
    57         rev_sparse_hes.cpp rev_sparse_jac.cpp rev_two.cpp \
     54        mul_level.cpp mul_zero_one.cpp ndebug.cpp near_equal_ext.cpp \
     55        neg.cpp ode_err_control.cpp optimize.cpp poly.cpp pow.cpp \
     56        pow_int.cpp romberg_one.cpp rosen_34.cpp runge_45.cpp \
     57        reverse.cpp rev_sparse_hes.cpp rev_sparse_jac.cpp rev_two.cpp \
    5858        simple_vector.cpp sin.cpp sin_cos.cpp sinh.cpp \
    5959        sparse_hessian.cpp sparse_jacobian.cpp sparse_vec_ad.cpp \
     
    7373        jacobian.$(OBJEXT) log.$(OBJEXT) log_10.$(OBJEXT) \
    7474        mul.$(OBJEXT) mul_eq.$(OBJEXT) mul_level.$(OBJEXT) \
    75         mul_zero_one.$(OBJEXT) near_equal_ext.$(OBJEXT) neg.$(OBJEXT) \
     75        mul_zero_one.$(OBJEXT) ndebug.$(OBJEXT) \
     76        near_equal_ext.$(OBJEXT) neg.$(OBJEXT) \
    7677        ode_err_control.$(OBJEXT) optimize.$(OBJEXT) poly.$(OBJEXT) \
    7778        pow.$(OBJEXT) pow_int.$(OBJEXT) romberg_one.$(OBJEXT) \
     
    287288        mul_level.cpp \
    288289        mul_zero_one.cpp \
     290        ndebug.cpp \
    289291        near_equal_ext.cpp \
    290292        neg.cpp \
     
    402404@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_level.Po@am__quote@
    403405@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_zero_one.Po@am__quote@
     406@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ndebug.Po@am__quote@
    404407@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/near_equal_ext.Po@am__quote@
    405408@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/neg.Po@am__quote@
     
    645648
    646649
     650ndebug.$(OBJEXT): ndebug.cpp
     651        $(CXXCOMPILE) -DNDEBUG -c ndebug.cpp -o ndebug.$(OBJEXT)
     652
    647653test: test_more$(EXEEXT)
    648654        ./test_more | tee test.log
  • trunk/test_more/test_more.cpp

    r1659 r1717  
    5353extern bool MulEq(void);
    5454extern bool MulZeroOne(void);
     55extern bool ndebug(void);
    5556extern bool NearEqualExt(void);
    5657extern bool Neg(void);
     
    150151        ok &= Run( MulEq,           "MulEq"          );
    151152        ok &= Run( MulZeroOne,      "MulZeroOne"     );
     153        ok &= Run( ndebug,          "ndebug"         );
    152154        ok &= Run( NearEqualExt,    "NearEqualExt"   );
    153155        ok &= Run( Neg,             "Neg"            );
  • trunk/test_more/test_more.vcproj

    r1638 r1717  
    217217                        </File>
    218218                        <File
     219                                RelativePath=".\ndebug.cpp">
     220                        </File>
     221                        <File
    219222                                RelativePath=".\near_equal_ext.cpp">
    220223                        </File>
  • trunk/test_more/test_one.sh.in

    r1697 r1717  
    5151        export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:@IPOPT_DIR@/lib"
    5252fi
     53if [ "$1" == 'ndebug.cpp' ]
     54then
     55        cmd="$cmd -DNDEBUG"
     56fi
    5357echo $cmd
    5458$cmd
     
    5963fi
    6064exit 0
    61 
Note: See TracChangeset for help on using the changeset viewer.