Changeset 2265 for trunk/test_more


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/test_more
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 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.