Changeset 2265


Ignore:
Timestamp:
Jan 15, 2012 1:07:32 PM (8 years ago)
Author:
bradbell
Message:
  1. Fix configure and make so works when building is source directory.
  1. Make test.sh special for each directory so that it can run multiple

cases of a test program; e.g., see multi_thread/test.sh.
In some cases that depend on configure, use */test.sh.to create test.sh.

  1. Have configure.ac change all *.sh output files to be executable.
  1. Update version number.

add_copyright.sh: advance copyright date to 2012.

Location:
trunk
Files:
15 added
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/AUTHORS

    r2243 r2265  
    22             ===========================================
    33
    4 To date, 2012-01-01, Bradley M. Bell is the sole author of CppAD.
     4To date, 2012-01-15, Bradley M. Bell is the sole author of CppAD.
    55While Bradley M. Bell worked for the University of Washington during
    66the development of CppAD, the following are also true:
  • trunk/bin/add_copyright.sh

    r2082 r2265  
    22# $Id$
    33# -----------------------------------------------------------------------------
    4 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    55#
    66# CppAD is distributed under multiple licenses. This distribution is under
     
    4141/* \$Id:\$ */
    4242/* --------------------------------------------------------------------------
    43 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     43CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    4444
    4545CppAD is distributed under multiple licenses. This distribution is under
     
    5858# \$Id:\$
    5959# -----------------------------------------------------------------------------
    60 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     60# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    6161#
    6262# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/build.sh

    r2237 r2265  
    22# $Id$
    33# -----------------------------------------------------------------------------
    4 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    55#
    66# CppAD is distributed under multiple licenses. This distribution is under
     
    271271                echo "cp $file ../$file"
    272272                cp $file ../$file
    273                 #
    274                 # change shell scripts to be executable
    275                 ext=`echo $file | sed -e 's/.*\.\([^.]*\)$/\1/'`
    276                 if [ "$ext" == "sh" ]
    277                 then
    278                         echo "chmod +x ../$file"
    279                         chmod +x ../$file
    280                 fi
    281273        done
    282274        #
  • trunk/configure

    r2243 r2265  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for CppAD 20120101.
     3# Generated by GNU Autoconf 2.68 for CppAD 20120115.
    44#
    55# Report bugs to <cppad@list.coin-or.org>.
     
    561561PACKAGE_NAME='CppAD'
    562562PACKAGE_TARNAME='cppad'
    563 PACKAGE_VERSION='20120101'
    564 PACKAGE_STRING='CppAD 20120101'
     563PACKAGE_VERSION='20120115'
     564PACKAGE_STRING='CppAD 20120115'
    565565PACKAGE_BUGREPORT='cppad@list.coin-or.org'
    566566PACKAGE_URL=''
     
    13351335  # This message is too long to be a string in the A/UX 3.1 sh.
    13361336  cat <<_ACEOF
    1337 \`configure' configures CppAD 20120101 to adapt to many kinds of systems.
     1337\`configure' configures CppAD 20120115 to adapt to many kinds of systems.
    13381338
    13391339Usage: $0 [OPTION]... [VAR=VALUE]...
     
    14011401if test -n "$ac_init_help"; then
    14021402  case $ac_init_help in
    1403      short | recursive ) echo "Configuration of CppAD 20120101:";;
     1403     short | recursive ) echo "Configuration of CppAD 20120115:";;
    14041404   esac
    14051405  cat <<\_ACEOF
     
    15191519if $ac_init_version; then
    15201520  cat <<\_ACEOF
    1521 CppAD configure 20120101
     1521CppAD configure 20120115
    15221522generated by GNU Autoconf 2.68
    15231523
     
    21432143running configure, to aid debugging if configure makes a mistake.
    21442144
    2145 It was created by CppAD $as_me 20120101, which was
     2145It was created by CppAD $as_me 20120115, which was
    21462146generated by GNU Autoconf 2.68.  Invocation command line was
    21472147
     
    47994799# Define the identity of the package.
    48004800 PACKAGE='cppad'
    4801  VERSION='20120101'
     4801 VERSION='20120115'
    48024802
    48034803
     
    65206520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&5
    65216521$as_echo "cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&6; }
    6522 ac_config_files="$ac_config_files cppad/configure.hpp doxyfile doc.omh example/test_one.sh omh/install_unix.omh omh/install_windows.omh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc test_more/test_one.sh makefile example/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile introduction/get_started/makefile introduction/exp_apx/makefile multi_thread/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
    6523 
     6522ac_config_files="$ac_config_files cppad/configure.hpp doxyfile doc.omh cppad_ipopt/example/test.sh cppad_ipopt/speed/test.sh cppad_ipopt/test/test.sh example/test_one.sh omh/install_unix.omh omh/install_windows.omh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc test_more/test_one.sh makefile example/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile introduction/get_started/makefile introduction/exp_apx/makefile multi_thread/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
     6523
     6524
     6525ac_config_commands="$ac_config_commands cppad_ipopt_example_test.sh"
     6526
     6527ac_config_commands="$ac_config_commands cppad_ipopt_speed_test.sh"
     6528
     6529ac_config_commands="$ac_config_commands cppad_ipopt_test_test.sh"
     6530
     6531ac_config_commands="$ac_config_commands example_test_one.sh"
     6532
     6533ac_config_commands="$ac_config_commands test_more_test_one.sh"
    65246534
    65256535
     
    71547164# values after options handling.
    71557165ac_log="
    7156 This file was extended by CppAD $as_me 20120101, which was
     7166This file was extended by CppAD $as_me 20120115, which was
    71577167generated by GNU Autoconf 2.68.  Invocation command line was
    71587168
     
    72117221ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    72127222ac_cs_version="\\
    7213 CppAD config.status 20120101
     7223CppAD config.status 20120115
    72147224configured by $0, generated by GNU Autoconf 2.68,
    72157225  with options \\"\$ac_cs_config\\"
     
    73217331AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
    73227332
     7333
     7334
     7335
     7336
     7337
     7338
     7339
     7340
    73237341_ACEOF
    73247342
     
    73337351    "doxyfile") CONFIG_FILES="$CONFIG_FILES doxyfile" ;;
    73347352    "doc.omh") CONFIG_FILES="$CONFIG_FILES doc.omh" ;;
     7353    "cppad_ipopt/example/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/example/test.sh" ;;
     7354    "cppad_ipopt/speed/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/speed/test.sh" ;;
     7355    "cppad_ipopt/test/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/test/test.sh" ;;
    73357356    "example/test_one.sh") CONFIG_FILES="$CONFIG_FILES example/test_one.sh" ;;
    73367357    "omh/install_unix.omh") CONFIG_FILES="$CONFIG_FILES omh/install_unix.omh" ;;
     
    73597380    "speed/src/makefile") CONFIG_FILES="$CONFIG_FILES speed/src/makefile" ;;
    73607381    "test_more/makefile") CONFIG_FILES="$CONFIG_FILES test_more/makefile" ;;
     7382    "cppad_ipopt_example_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_example_test.sh" ;;
     7383    "cppad_ipopt_speed_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_speed_test.sh" ;;
     7384    "cppad_ipopt_test_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_test_test.sh" ;;
     7385    "example_test_one.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS example_test_one.sh" ;;
     7386    "test_more_test_one.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS test_more_test_one.sh" ;;
    73617387
    73627388  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     
    78837909}
    78847910 ;;
     7911    "cppad_ipopt_example_test.sh":C) chmod +x cppad_ipopt/example/test.sh ;;
     7912    "cppad_ipopt_speed_test.sh":C) chmod +x cppad_ipopt/speed/test.sh ;;
     7913    "cppad_ipopt_test_test.sh":C) chmod +x cppad_ipopt/test/test.sh ;;
     7914    "example_test_one.sh":C) chmod +x example/test_one.sh ;;
     7915    "test_more_test_one.sh":C) chmod +x test_more/test_one.sh ;;
    78857916
    78867917  esac
  • trunk/configure.ac

    r2243 r2265  
    11dnl $Id$
    22dnl ---------------------------------------------------------------------------
    3 dnl CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3dnl CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44dnl
    55dnl CppAD is distributed under multiple licenses. This distribution is under
     
    1313dnl Process this file with autoconf to produce a configure script.
    1414dnl   package   version              bug-report
    15 AC_INIT(CppAD, 20120101, cppad@list.coin-or.org)
     15AC_INIT(CppAD, 20120115, cppad@list.coin-or.org)
    1616AC_SUBST(PACKAGE_URL, "http://www.coin-or.org/CppAD")
    1717AC_SUBST(PACKAGE_DESCRIPTION, "Differentiation of C++ Algorithms")
     
    497497        doxyfile
    498498        doc.omh
     499        cppad_ipopt/example/test.sh
     500        cppad_ipopt/speed/test.sh
     501        cppad_ipopt/test/test.sh
    499502        example/test_one.sh
    500503        omh/install_unix.omh
     
    528531dnl the comment line above is used by ./new_stable.sh
    529532
     533AC_CONFIG_COMMANDS(
     534        [cppad_ipopt_example_test.sh],
     535        [chmod +x cppad_ipopt/example/test.sh],
     536)       []
     537AC_CONFIG_COMMANDS(
     538        [cppad_ipopt_speed_test.sh],
     539        [chmod +x cppad_ipopt/speed/test.sh],
     540        []
     541)
     542AC_CONFIG_COMMANDS(
     543        [cppad_ipopt_test_test.sh],
     544        [chmod +x cppad_ipopt/test/test.sh],
     545        []
     546)
     547AC_CONFIG_COMMANDS(
     548        [example_test_one.sh],
     549        [chmod +x example/test_one.sh],
     550        []
     551)
     552AC_CONFIG_COMMANDS(
     553        [test_more_test_one.sh],
     554        [chmod +x test_more/test_one.sh],
     555        []
     556)
    530557
    531558dnl create all the requested output files
  • trunk/cppad/configure.hpp

    r2243 r2265  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    4343cppad-yyyymmdd as a C string where yyyy is year, mm is month, and dd is day.
    4444*/
    45 # define CPPAD_PACKAGE_STRING "cppad-20120101"
     45# define CPPAD_PACKAGE_STRING "cppad-20120115"
    4646
    4747/*!
  • trunk/cppad_ipopt/example/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2222#
    2323# Microsoft project files (and ipopt install utility for Visual Studio)
    24 EXTRA_DIST        = \
     24EXTRA_DIST        =  test.sh \
     25        \
    2526        example_windows.bat \
    2627        ode1.omh \
     
    5758        ode_simple.hpp
    5859
    59 test.sh: example$(EXEEXT)
    60         echo "#! /bin/sh -e"  > test.sh
    61         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    62         echo "./example"     >> test.sh
    63         chmod +x test.sh
    64 
    65 test: test.sh
     60test: check
    6661        ./test.sh
  • trunk/cppad_ipopt/example/makefile.in

    r2200 r2265  
    3434check_PROGRAMS = example$(EXEEXT)
    3535subdir = cppad_ipopt/example
    36 DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     36DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in \
     37        $(srcdir)/test.sh.in
    3738ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    3839am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    4041        $(ACLOCAL_M4)
    4142mkinstalldirs = $(install_sh) -d
    42 CONFIG_CLEAN_FILES =
     43CONFIG_CLEAN_FILES = test.sh
    4344CONFIG_CLEAN_VPATH_FILES =
    4445am_example_OBJECTS = example.$(OBJEXT) get_started.$(OBJEXT) \
     
    210211#
    211212# Microsoft project files (and ipopt install utility for Visual Studio)
    212 EXTRA_DIST = \
     213EXTRA_DIST = test.sh \
     214        \
    213215        example_windows.bat \
    214216        ode1.omh \
     
    280282        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    281283$(am__aclocal_m4_deps):
     284test.sh: $(top_builddir)/config.status $(srcdir)/test.sh.in
     285        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
    282286
    283287clean-checkPROGRAMS:
     
    510514
    511515
    512 test.sh: example$(EXEEXT)
    513         echo "#! /bin/sh -e"  > test.sh
    514         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    515         echo "./example"     >> test.sh
    516         chmod +x test.sh
    517 
    518 test: test.sh
     516test: check
    519517        ./test.sh
    520518
  • trunk/cppad_ipopt/speed/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1414# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp
    1515DEFS          =
     16#
     17EXTRA_DIST = test.sh.in
    1618#
    1719if CppAD_BOOST_DIR
     
    5658        ode_speed.cpp
    5759
    58 test.sh: speed$(EXEEXT)
    59         echo "#! /bin/sh -e"  > test.sh
    60         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    61         echo "./speed"       >> test.sh
    62         chmod +x test.sh
    63 
    64 test: test.sh
     60test: check
    6561        ./test.sh
  • trunk/cppad_ipopt/speed/makefile.in

    r2200 r2265  
    3434check_PROGRAMS = speed$(EXEEXT)
    3535subdir = cppad_ipopt/speed
    36 DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     36DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in \
     37        $(srcdir)/test.sh.in
    3738ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    3839am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    4041        $(ACLOCAL_M4)
    4142mkinstalldirs = $(install_sh) -d
    42 CONFIG_CLEAN_FILES =
     43CONFIG_CLEAN_FILES = test.sh
    4344CONFIG_CLEAN_VPATH_FILES =
    4445am_speed_OBJECTS = speed.$(OBJEXT) cppad_ipopt_nlp.$(OBJEXT) \
     
    206207top_builddir = @top_builddir@
    207208top_srcdir = @top_srcdir@
     209#
     210EXTRA_DIST = test.sh.in
    208211@CppAD_BOOST_DIR_FALSE@BOOST_INCLUDE =
    209212#
     
    279282        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    280283$(am__aclocal_m4_deps):
     284test.sh: $(top_builddir)/config.status $(srcdir)/test.sh.in
     285        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
    281286
    282287clean-checkPROGRAMS:
     
    581586
    582587
    583 test.sh: speed$(EXEEXT)
    584         echo "#! /bin/sh -e"  > test.sh
    585         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    586         echo "./speed"       >> test.sh
    587         chmod +x test.sh
    588 
    589 test: test.sh
     588test: check
    590589        ./test.sh
    591590
  • trunk/cppad_ipopt/test/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1414# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp
    1515DEFS          =
     16#
     17EXTRA_DIST = test.sh.in
    1618#
    1719if CppAD_BOOST_DIR
     
    4648        retape_k1_l2.cpp
    4749
    48 test.sh: test_more$(EXEEXT)
    49         echo "#! /bin/sh -e"  > test.sh
    50         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    51         echo "./test_more"   >> test.sh
    52         chmod +x test.sh
    53 
    54 test: test.sh
     50test: check
    5551        ./test.sh
  • trunk/cppad_ipopt/test/makefile.in

    r2200 r2265  
    3434check_PROGRAMS = test_more$(EXEEXT)
    3535subdir = cppad_ipopt/test
    36 DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     36DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in \
     37        $(srcdir)/test.sh.in
    3738ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    3839am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    4041        $(ACLOCAL_M4)
    4142mkinstalldirs = $(install_sh) -d
    42 CONFIG_CLEAN_FILES =
     43CONFIG_CLEAN_FILES = test.sh
    4344CONFIG_CLEAN_VPATH_FILES =
    4445am_test_more_OBJECTS = test_more.$(OBJEXT) k_gt_one.$(OBJEXT) \
     
    201202top_builddir = @top_builddir@
    202203top_srcdir = @top_srcdir@
     204#
     205EXTRA_DIST = test.sh.in
    203206@CppAD_BOOST_DIR_FALSE@BOOST_INCLUDE =
    204207#
     
    264267        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    265268$(am__aclocal_m4_deps):
     269test.sh: $(top_builddir)/config.status $(srcdir)/test.sh.in
     270        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
    266271
    267272clean-checkPROGRAMS:
     
    494499
    495500
    496 test.sh: test_more$(EXEEXT)
    497         echo "#! /bin/sh -e"  > test.sh
    498         echo "export LD_LIBRARY_PATH=\"$(CPPAD_IPOPT_LD_PATH)\"" >> test.sh
    499         echo "./test_more"   >> test.sh
    500         chmod +x test.sh
    501 
    502 test: test.sh
     501test: check
    503502        ./test.sh
    504503
  • trunk/example/makefile.am

    r2240 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    3838#
    3939# Microsoft project files an script to run a single test
    40 EXTRA_DIST        = example.sln example.vcproj test_one.sh.in \
     40EXTRA_DIST        =  test.sh \
     41        example.sln example.vcproj test_one.sh.in \
    4142        $(ADOLC_EXTRA_FILES)
    4243#
     
    185186        vec_ad.cpp
    186187
    187 test.sh: example$(EXEEXT)
    188         echo "#! /bin/sh -e"  > test.sh
    189         echo "./example "    >> test.sh
    190         chmod +x test.sh
    191 
    192 test: test.sh
    193         ./test.sh
     188test: check
     189        $(srcdir)/test.sh
  • trunk/example/makefile.in

    r2240 r2265  
    303303#
    304304# Microsoft project files an script to run a single test
    305 EXTRA_DIST = example.sln example.vcproj test_one.sh.in \
     305EXTRA_DIST = test.sh \
     306        example.sln example.vcproj test_one.sh.in \
    306307        $(ADOLC_EXTRA_FILES)
    307308
     
    831832
    832833
    833 test.sh: example$(EXEEXT)
    834         echo "#! /bin/sh -e"  > test.sh
    835         echo "./example "    >> test.sh
    836         chmod +x test.sh
    837 
    838 test: test.sh
    839         ./test.sh
     834test: check
     835        $(srcdir)/test.sh
    840836
    841837# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/introduction/exp_apx/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2222#
    2323# Microsoft project files
    24 EXTRA_DIST        = \
     24EXTRA_DIST        =  test.sh \
     25        \
    2526        exp_apx.sln \
    2627        exp_apx.vcproj \
     
    5253        exp_eps_rev2.cpp
    5354
    54 test.sh: exp_apx$(EXEEXT)
    55         echo "#! /bin/sh -e"  > test.sh
    56         echo "./exp_apx"     >> test.sh
    57         chmod +x test.sh
    58 
    59 test: test.sh
    60         ./test.sh
     55test: check
     56        $(srcdir)/test.sh
  • trunk/introduction/exp_apx/makefile.in

    r2200 r2265  
    211211#
    212212# Microsoft project files
    213 EXTRA_DIST = \
     213EXTRA_DIST = test.sh \
     214        \
    214215        exp_apx.sln \
    215216        exp_apx.vcproj \
     
    514515
    515516
    516 test.sh: exp_apx$(EXEEXT)
    517         echo "#! /bin/sh -e"  > test.sh
    518         echo "./exp_apx"     >> test.sh
    519         chmod +x test.sh
    520 
    521 test: test.sh
    522         ./test.sh
     517test: check
     518        $(srcdir)/test.sh
    523519
    524520# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/introduction/get_started/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2323#
    2424# Microsoft project files
    25 EXTRA_DIST          = get_started.sln get_started.vcproj
     25EXTRA_DIST          =  test.sh \
     26        get_started.sln get_started.vcproj
    2627#
    2728check_PROGRAMS      = get_started
     
    3233get_started_SOURCES = get_started.cpp
    3334#
    34 test.sh: get_started$(EXEEXT)
    35         echo "#! /bin/sh -e"  > test.sh
    36         echo "./get_started" >> test.sh
    37         chmod +x test.sh
    38 
    39 test: test.sh
    40         ./test.sh
     35test: check
     36        $(srcdir)/test.sh
  • trunk/introduction/get_started/makefile.in

    r2200 r2265  
    202202#
    203203# Microsoft project files
    204 EXTRA_DIST = get_started.sln get_started.vcproj
     204EXTRA_DIST = test.sh \
     205        get_started.sln get_started.vcproj
     206
    205207#
    206208AM_CPPFLAGS = -I. -I$(top_srcdir) $(BOOST_INCLUDE)
     
    468470
    469471#
    470 test.sh: get_started$(EXEEXT)
    471         echo "#! /bin/sh -e"  > test.sh
    472         echo "./get_started" >> test.sh
    473         chmod +x test.sh
    474 
    475 test: test.sh
    476         ./test.sh
     472test: check
     473        $(srcdir)/test.sh
    477474
    478475# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/makefile.am

    r2240 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    310310
    311311test: all
    312         rm -f test.log
     312        rm -f test.log 
    313313        touch test.log
    314         rm -f test.sh
    315314        echo "#! /bin/sh -e"                               >  test.sh
    316315        for dir in $(test_directory_list) ; do (                        \
    317                 rm -f $$dir/test.sh                                        \
    318316                echo "#"                                      >> test.sh ; \
     317                echo "echo \"Running make test in $$dir\""    >> test.sh ; \
    319318                echo "cd $$dir "                              >> test.sh ; \
    320                 echo "make test.sh"                           >> test.sh ; \
    321                 echo "echo \"Running test.sh in $$dir\""      >> test.sh ; \
    322                 echo "./test.sh"                              >> test.sh ; \
     319                echo "make test"                              >> test.sh ; \
    323320                echo "cd $(ABS_TOP_BUILDDIR)"                 >> test.sh ; \
    324321        ) done
     
    326323        chmod +x test.sh
    327324        ./test.sh
    328 #
    329325#
    330326dist-hook:
  • trunk/makefile.in

    r2240 r2265  
    11311131
    11321132test: all
    1133         rm -f test.log
     1133        rm -f test.log 
    11341134        touch test.log
    1135         rm -f test.sh
    11361135        echo "#! /bin/sh -e"                               >  test.sh
    11371136        for dir in $(test_directory_list) ; do (                        \
    1138                 rm -f $$dir/test.sh                                        \
    11391137                echo "#"                                      >> test.sh ; \
     1138                echo "echo \"Running make test in $$dir\""    >> test.sh ; \
    11401139                echo "cd $$dir "                              >> test.sh ; \
    1141                 echo "make test.sh"                           >> test.sh ; \
    1142                 echo "echo \"Running test.sh in $$dir\""      >> test.sh ; \
    1143                 echo "./test.sh"                              >> test.sh ; \
     1140                echo "make test"                              >> test.sh ; \
    11441141                echo "cd $(ABS_TOP_BUILDDIR)"                 >> test.sh ; \
    11451142        ) done
     
    11471144        chmod +x test.sh
    11481145        ./test.sh
    1149 #
    11501146#
    11511147dist-hook:
  • trunk/multi_thread/makefile.in

    r2260 r2265  
    118118# $Id$
    119119# -----------------------------------------------------------------------------
    120 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     120# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    121121#
    122122# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/print_for/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    3232#
    3333# Microsoft project files
    34 EXTRA_DIST        = print_for.sln print_for.vcproj
     34EXTRA_DIST        =  test.sh \
     35        print_for.sln print_for.vcproj
    3536#
    3637check_PROGRAMS    = print_for
     
    4243print_for_SOURCES = print_for.cpp
    4344
    44 test.sh: print_for$(EXEEXT)
    45         echo "#! /bin/sh -e"                                     > test.sh
    46         echo "./print_for | tee test.log"                       >> test.sh
    47         echo "sed -e '/^Test passes/,\$$d' < test.log > test.1" >> test.sh
    48         echo "sed -e '1,/^Test passes/d'   < test.log > test.2" >> test.sh
    49         echo "if ! diff test.1 test.2 ; then exit 1 ; fi"       >> test.sh
    50         chmod +x test.sh
    51 
    52 test: test.sh
    53         ./test.sh
     45test: check
     46        $(srcdir)/test.sh
  • trunk/print_for/makefile.in

    r2200 r2265  
    209209#
    210210# Microsoft project files
    211 EXTRA_DIST = print_for.sln print_for.vcproj
     211EXTRA_DIST = test.sh \
     212        print_for.sln print_for.vcproj
     213
    212214#
    213215AM_CPPFLAGS = -I. $(CPPAD_INCLUDE) $(BOOST_INCLUDE)
     
    476478
    477479
    478 test.sh: print_for$(EXEEXT)
    479         echo "#! /bin/sh -e"                                     > test.sh
    480         echo "./print_for | tee test.log"                       >> test.sh
    481         echo "sed -e '/^Test passes/,\$$d' < test.log > test.1" >> test.sh
    482         echo "sed -e '1,/^Test passes/d'   < test.log > test.2" >> test.sh
    483         echo "if ! diff test.1 test.2 ; then exit 1 ; fi"       >> test.sh
    484         chmod +x test.sh
    485 
    486 test: test.sh
    487         ./test.sh
     480test: check
     481        $(srcdir)/test.sh
    488482
    489483# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/adolc/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1515# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp
    1616DEFS          =
     17#
     18EXTRA_DIST = test.sh
    1719#
    1820if CppAD_BOOST_DIR
     
    4749        sparse_jacobian.cpp
    4850
    49 test.sh: adolc$(EXEEXT)
    50         echo "#! /bin/sh -e"               > test.sh
    51         echo "./adolc correct 123"        >> test.sh
    52         echo "./adolc correct 123 retape" >> test.sh
    53         chmod +x test.sh
    54 
    55 test: test.sh
    56         ./test.sh
     51test: check
     52        $(srcdir)/test.sh
  • trunk/speed/adolc/makefile.in

    r2200 r2265  
    200200top_builddir = @top_builddir@
    201201top_srcdir = @top_srcdir@
     202#
     203EXTRA_DIST = test.sh
    202204@CppAD_BOOST_DIR_FALSE@BOOST_INCLUDE =
    203205#
     
    508510
    509511
    510 test.sh: adolc$(EXEEXT)
    511         echo "#! /bin/sh -e"               > test.sh
    512         echo "./adolc correct 123"        >> test.sh
    513         echo "./adolc correct 123 retape" >> test.sh
    514         chmod +x test.sh
    515 
    516 test: test.sh
    517         ./test.sh
     512test: check
     513        $(srcdir)/test.sh
    518514
    519515# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/cppad/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2222endif
    2323#
    24 EXTRA_DIST       = cppad.sln cppad.vcproj
     24EXTRA_DIST       =  test.sh \
     25        cppad.sln cppad.vcproj
    2526#
    2627check_PROGRAMS   = cppad
     
    4950        sparse_jacobian.cpp
    5051
    51 test.sh: cppad$(EXEEXT)
    52         echo "#! /bin/sh -e"                 > test.sh
    53         echo "./cppad correct 123"          >> test.sh
    54         echo "./cppad correct 123 retape"   >> test.sh
    55         echo "./cppad correct 123 optimize" >> test.sh
    56         chmod +x test.sh
    57 
    58 test: test.sh
    59         ./test.sh
     52test: check
     53        $(srcdir)/test.sh
  • trunk/speed/cppad/makefile.in

    r2200 r2265  
    204204@CppAD_BOOST_DIR_TRUE@BOOST_INCLUDE = -I$(BOOST_DIR)
    205205#
    206 EXTRA_DIST = cppad.sln cppad.vcproj
     206EXTRA_DIST = test.sh \
     207        cppad.sln cppad.vcproj
     208
    207209#
    208210AM_CPPFLAGS = -I$(top_srcdir) $(BOOST_INCLUDE)
     
    510512
    511513
    512 test.sh: cppad$(EXEEXT)
    513         echo "#! /bin/sh -e"                 > test.sh
    514         echo "./cppad correct 123"          >> test.sh
    515         echo "./cppad correct 123 retape"   >> test.sh
    516         echo "./cppad correct 123 optimize" >> test.sh
    517         chmod +x test.sh
    518 
    519 test: test.sh
    520         ./test.sh
     514test: check
     515        $(srcdir)/test.sh
    521516
    522517# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/double/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2222endif
    2323#
    24 EXTRA_DIST       = double.sln double.vcproj
     24EXTRA_DIST       =  test.sh \
     25        double.sln double.vcproj
    2526#
    2627check_PROGRAMS   = double
     
    4950        sparse_jacobian.cpp
    5051
    51 test.sh: double$(EXEEXT)
    52         echo "#! /bin/sh -e"            > test.sh
    53         echo "./double correct 123"    >> test.sh
    54         chmod +x test.sh
    55 
    56 test: test.sh
    57         ./test.sh
     52test: check
     53        $(srcdir)/test.sh
  • trunk/speed/double/makefile.in

    r2200 r2265  
    205205@CppAD_BOOST_DIR_TRUE@BOOST_INCLUDE = -I$(BOOST_DIR)
    206206#
    207 EXTRA_DIST = double.sln double.vcproj
     207EXTRA_DIST = test.sh \
     208        double.sln double.vcproj
     209
    208210#
    209211AM_CPPFLAGS = -I$(top_srcdir) $(BOOST_INCLUDE)
     
    511513
    512514
    513 test.sh: double$(EXEEXT)
    514         echo "#! /bin/sh -e"            > test.sh
    515         echo "./double correct 123"    >> test.sh
    516         chmod +x test.sh
    517 
    518 test: test.sh
    519         ./test.sh
     515test: check
     516        $(srcdir)/test.sh
    520517
    521518# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/example/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2121endif
    2222#
    23 EXTRA_DIST        = example.sln example.vcproj speed_program.cpp
     23EXTRA_DIST        =  test.sh \
     24        example.sln example.vcproj speed_program.cpp
    2425#
    2526check_PROGRAMS    = example
     
    4344        time_test.cpp
    4445
    45 test.sh: example$(EXEEXT)
    46         echo "#! /bin/sh -e"  > test.sh
    47         echo "./example"     >> test.sh
    48         chmod +x test.sh
    49 
    50 test: test.sh
    51         ./test.sh
     46test: check
     47        $(srcdir)/test.sh
  • trunk/speed/example/makefile.in

    r2200 r2265  
    205205@CppAD_BOOST_DIR_TRUE@BOOST_INCLUDE = -I$(BOOST_DIR)
    206206#
    207 EXTRA_DIST = example.sln example.vcproj speed_program.cpp
     207EXTRA_DIST = test.sh \
     208        example.sln example.vcproj speed_program.cpp
     209
    208210#
    209211AM_CPPFLAGS = -I. -I$(top_srcdir) $(BOOST_INCLUDE)
     
    494496
    495497
    496 test.sh: example$(EXEEXT)
    497         echo "#! /bin/sh -e"  > test.sh
    498         echo "./example"     >> test.sh
    499         chmod +x test.sh
    500 
    501 test: test.sh
    502         ./test.sh
     498test: check
     499        $(srcdir)/test.sh
    503500
    504501# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/fadbad/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1515# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp
    1616DEFS          =
     17#
     18EXTRA_DIST = test.sh
    1719#
    1820if CppAD_BOOST_DIR
     
    4850        sparse_jacobian.cpp
    4951
    50 test.sh: fadbad$(EXEEXT)
    51         echo "#! /bin/sh -e"                 > test.sh
    52         echo "./fadbad correct 123"         >> test.sh
    53         chmod +x test.sh
    54 
    55 test: test.sh
    56         ./test.sh
     52test: check
     53        $(srcdir)/test.sh
  • trunk/speed/fadbad/makefile.in

    r2200 r2265  
    201201top_builddir = @top_builddir@
    202202top_srcdir = @top_srcdir@
     203#
     204EXTRA_DIST = test.sh
    203205@CppAD_BOOST_DIR_FALSE@BOOST_INCLUDE =
    204206#
     
    510512
    511513
    512 test.sh: fadbad$(EXEEXT)
    513         echo "#! /bin/sh -e"                 > test.sh
    514         echo "./fadbad correct 123"         >> test.sh
    515         chmod +x test.sh
    516 
    517 test: test.sh
    518         ./test.sh
     514test: check
     515        $(srcdir)/test.sh
    519516
    520517# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/profile/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    2222endif
    2323#
    24 EXTRA_DIST       = gprof.sed
     24EXTRA_DIST       =  test.sh \
     25        gprof.sed
    2526#
    2627check_PROGRAMS   = profile
     
    4950        ../cppad/sparse_jacobian.cpp
    5051
    51 test.sh: profile$(EXEEXT)
    52         echo "#! /bin/sh -e"                 > test.sh
    53         echo "./profile correct 123"        >> test.sh
    54         chmod +x test.sh
    55 
    56 test: test.sh
    57         ./test.sh
     52test: check
     53        $(srcdir)/test.sh
  • trunk/speed/profile/makefile.in

    r2200 r2265  
    205205@CppAD_BOOST_DIR_TRUE@BOOST_INCLUDE = -I$(BOOST_DIR)
    206206#
    207 EXTRA_DIST = gprof.sed
     207EXTRA_DIST = test.sh \
     208        gprof.sed
     209
    208210#
    209211AM_CPPFLAGS = -I$(top_srcdir) $(BOOST_INCLUDE)
     
    611613
    612614
    613 test.sh: profile$(EXEEXT)
    614         echo "#! /bin/sh -e"                 > test.sh
    615         echo "./profile correct 123"        >> test.sh
    616         chmod +x test.sh
    617 
    618 test: test.sh
    619         ./test.sh
     615test: check
     616        $(srcdir)/test.sh
    620617
    621618# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/speed/sacado/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1515# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp
    1616DEFS          =
     17#
     18EXTRA_DIST = test.sh
    1719#
    1820if CppAD_BOOST_DIR
     
    4850        sparse_jacobian.cpp
    4951
    50 test.sh: sacado$(EXEEXT)
    51         echo "#! /bin/sh -e"                 > test.sh
    52         echo "./sacado correct 123"         >> test.sh
    53         chmod +x test.sh
    54 
    55 test: test.sh
    56         ./test.sh
     52test: check
     53        $(srcdir)/test.sh
  • trunk/speed/sacado/makefile.in

    r2200 r2265  
    201201top_builddir = @top_builddir@
    202202top_srcdir = @top_srcdir@
     203#
     204EXTRA_DIST = test.sh
    203205@CppAD_BOOST_DIR_FALSE@BOOST_INCLUDE =
    204206#
     
    511513
    512514
    513 test.sh: sacado$(EXEEXT)
    514         echo "#! /bin/sh -e"                 > test.sh
    515         echo "./sacado correct 123"         >> test.sh
    516         chmod +x test.sh
    517 
    518 test: test.sh
    519         ./test.sh
     515test: check
     516        $(srcdir)/test.sh
    520517
    521518# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/test_more/makefile.am

    r2200 r2265  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    3535#
    3636# Microsoft project files and script to run a single test
    37 EXTRA_DIST        = test_more.sln test_more.vcproj test_one.sh.in
     37EXTRA_DIST        =  test.sh \
     38        test_more.sln test_more.vcproj test_one.sh.in
    3839#
    3940check_PROGRAMS    = test_more
     
    126127        -DNDEBUG -c $(top_srcdir)/test_more/ndebug.cpp -o ndebug.$(OBJEXT)
    127128
    128 test.sh: test_more$(EXEEXT)
    129         echo "#! /bin/sh -e"  > test.sh
    130         echo "./test_more "  >> test.sh
    131         chmod +x test.sh
    132 
    133 test: test.sh
    134         ./test.sh
     129test: check
     130        $(srcdir)/test.sh
  • trunk/test_more/makefile.in

    r2200 r2265  
    257257#
    258258# Microsoft project files and script to run a single test
    259 EXTRA_DIST = test_more.sln test_more.vcproj test_one.sh.in
     259EXTRA_DIST = test.sh \
     260        test_more.sln test_more.vcproj test_one.sh.in
     261
    260262#
    261263AM_CPPFLAGS = -I. \
     
    679681        -DNDEBUG -c $(top_srcdir)/test_more/ndebug.cpp -o ndebug.$(OBJEXT)
    680682
    681 test.sh: test_more$(EXEEXT)
    682         echo "#! /bin/sh -e"  > test.sh
    683         echo "./test_more "  >> test.sh
    684         chmod +x test.sh
    685 
    686 test: test.sh
    687         ./test.sh
     683test: check
     684        $(srcdir)/test.sh
    688685
    689686# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.