source: trunk/bin/check_all.sh

Last change on this file was 4024, checked in by bradbell, 13 months ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 46be2e2dbcaba47d8a38e8d9110efc48c7245754
end hash code: 50c63912234ddd32949460e8843399ac7f6df9b5

commit 50c63912234ddd32949460e8843399ac7f6df9b5
Author: Brad Bell <bradbell@…>
Date: Sun Sep 23 09:41:09 2018 -0700

master: add base2ad capability to checkpoint forward and reverse.

commit 423b330668e0e3f6d5eb97259ddcc5e2aac7189e
Author: Brad Bell <bradbell@…>
Date: Sun Sep 23 06:52:10 2018 -0700

master: Advance to cppad-20180923

commit 259744c0819c30bb648b0eb8ac362cdcb86f6a98
Author: Brad Bell <bradbell@…>
Date: Sun Sep 23 06:51:59 2018 -0700

master: atomic: improve see also, mention memory in atomic_base.

commit e7fe98386156854f28cc041ffc370aaa3c360ad3
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 12:24:38 2018 -0700

master: checkpoint: improve memory allocation documentation.

commit 1540c7cdac18ee3ff2b10f7ec3989c991be8dc6c
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 10:27:12 2018 -0700

master: checkpoint.hpp: remove some doxygen formattig commands.

commit e271a776a1725caf354346abc077a2e04345707f
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 09:27:39 2018 -0700

master: checkpoint: remove special case for tmb (no longer necessary).

commit 4e319c0b93d77723b36f8c77dc868dbbfb5161c5
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 09:11:18 2018 -0700

master: multi_thread/checkpoint.cpp test now passes.

commit b72d4c47b980fd92b2180aa0ead3fbb358835ef9
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 08:39:15 2018 -0700

master: working on geting multi_thread/checkpoint.cpp to pass its tests.


thread_test.cpp: print result for each number of threads.

commit 93adf79454964553c06e3a6d70e5a529d63e41c2
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 07:16:37 2018 -0700

master: Advance to cppad-20180922

commit 4bcd023ed4af9d4f52ebed766a8022af59f5574b
Author: Brad Bell <bradbell@…>
Date: Sat Sep 22 07:16:28 2018 -0700

master: checkpoint: attempt to get example/multi_thread/checkpoint.cpp to work.

commit b911efa5a513a3a414f001d05570b05f7e75732d
Author: Brad Bell <bradbell@…>
Date: Fri Sep 21 09:20:27 2018 -0700

master: multi_thread: add checkpoint example (Under Construction).
This example has been added because there is a suspected bug using checkpoint
with multiple threads.

commit 0dfb5649037c3a5c0ccef376c0b0449bde9d737f
Author: Brad Bell <bradbell@…>
Date: Fri Sep 21 05:35:13 2018 -0700

master: Advance to cppad-20180921

commit 536b06f59630a8d16f3ec85b1c01675d49855bd1
Author: Brad Bell <bradbell@…>
Date: Fri Sep 21 05:35:03 2018 -0700

master: make checkpoint/ctor.hpp a separate file.

commit d4c2647a46b926da8cf55126ffa09e036bb6ebef
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 16:23:15 2018 -0700

master: make checkpoint/reverse.hpp a separate file.

commit 459b8769a165c779e2b553b88136a15166738919
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 16:16:44 2018 -0700

master: make checkpoint/forward.hpp a separate file.

commit 55c6f34a9ef82a837e11a74c9da49ead54807031
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 13:20:24 2018 -0700

master: make checkpoint/rev_sparse_hes.hpp a separate file.

commit d15f401dec253340bb2df404c93b0a0ce6c0fd42
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 13:16:13 2018 -0700

master: checkpoint.hpp: make checkpoint/rev_sparse_jac.hpp a separate file.

commit 1b7561be8e9378784523931591ad0c69b47ef1c2
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 13:10:12 2018 -0700

master: checkpoint.hpp: make checkpoint/for_sparse_jac.hpp a separate file.

commit 8a44207afae9c2b4b527a988f6abc5354fc9bd03
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 11:49:34 2018 -0700

master: atomic_base.hpp: add atomic_base2ad.cpp example (deleted by mistake)

commit 60fdd10df33ffd30ca1b729fb3f0aceed47b2b7b
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 11:02:03 2018 -0700

master: checkpoint.hpp: make set_hes_sparse_bool.hpp a separate file.

commit 63d57df665178dd1eb93386f614228e9fc8adca3
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 10:59:56 2018 -0700

master: checkpoint.hpp: make set_hes_sparse_set.hpp a separate file.

commit 50f19625a3f6b7828a317fe819411873de88a6ae
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 10:56:54 2018 -0700

master: checkpoint.hpp: make set_jac_sparse_bool.hpp a separate file.

commit b5b029dbc88bd078b9999e92d3a58639fa77536f
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 10:23:53 2018 -0700

master: Advance to cppad-20180920

commit 2498480606fa639de5faa4c8796b4012a6828d14
Author: Brad Bell <bradbell@…>
Date: Thu Sep 20 10:19:55 2018 -0700

master: checkpoint.hpp: make set_jac_sparse_set.hpp a separate file.

commit d26d949132df354a62356988668b16123e0a0c49
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 22:05:00 2018 -0700

master: fix atomics in sparsity pattern calculations by ADFun< AD<Base>, Base > objects

commit 5c4eb81045564b2677773221f245678820d14436
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 14:57:51 2018 -0700

master: base2ad.cpp: edit comments in example.

commit ee6139b8b698e7d0751c699b2f283c7cb1b15d31
Merge: a19cdd86 48d85185
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 14:55:18 2018 -0700

Merge remote-tracking branch 'origin/master'

commit a19cdd86794a7dc3632a7d1869cc6089b724e472
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 13:21:29 2018 -0700

master: Advance to cppad-20180919

commit 3c09e3c2199cfe8999333960658dd965d6f07075
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 13:21:18 2018 -0700

master:
batch_edit.sh: add sorting to plan.
subgraph_reverse.hpp: add missing not_used_rec_base.
whats_new_18.omh: user's view of merge of base2ad.

commit a99fe1dfae5c231c5bdb7334c3d34f4e10c2d6be
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 11:18:48 2018 -0700

base2ad: extend base2ad atomics to work with reverse mode.

commit 335003af3576234710b793f389111c7e9a09a271
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 09:08:41 2018 -0700

base2ad: first commit where atomic function forward works with base2ad.

commit 48d85185a34398d35cd4152eaec2423783fb8af9
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 07:09:17 2018 -0700

master: batch_edit.sh: add to plan.

commit 4d54341db7fdf36e204d065f900582516019e1d5
Author: Brad Bell <bradbell@…>
Date: Wed Sep 19 07:07:39 2018 -0700

base2ad: cahnge result for base2ad to be ADFun< AD<Base>, Base>.

commit 22cb2a4a8566d30802d68a21f19f174675519cd5
Author: Brad Bell <bradbell@…>
Date: Tue Sep 18 10:34:06 2018 -0700

base2ad: Add RecBase? template parameter to ADFun type.


example_list.omh: add missing reference to base2ad.cpp.

commit f96708115f3c09730ce2e30082dfb0255627b476
Author: Brad Bell <bradbell@…>
Date: Mon Sep 17 13:45:26 2018 -0700

master: group user API and non user API functions.

commit 0008c201290460f47361ec8627efcb550f4f9a8b
Merge: d98dbd14 575a5c3f
Author: Brad Bell <bradbell@…>
Date: Mon Sep 17 09:50:57 2018 -0700

Merge branch 'master' into base2ad

commit 575a5c3fd26642da987bb99a374b7967dd634791
Author: Brad Bell <bradbell@…>
Date: Mon Sep 17 08:32:58 2018 -0700

master: user's view of spliting atomic functions into separate files.

commit 1559a985cb77dffbdf59d956264a8d22dd7e1940
Author: Brad Bell <bradbell@…>
Date: Mon Sep 17 07:56:07 2018 -0700

master: Advance to cppad-20180917

commit 74a019e6ff5bf7c60bb66729c2b57439ee611057
Author: Brad Bell <bradbell@…>
Date: Mon Sep 17 07:55:50 2018 -0700

master: split user API part of atomic_base.hpp into separate files.

commit d98dbd14da4993708418f8e001a554bab2e5efd3
Merge: e906f02e 47cc2b4c
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 17:49:39 2018 -0700

Merge branch 'master' into base2ad

commit 47cc2b4cd8777573b2b42b92a5bdf7962fa05b7c
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 17:48:49 2018 -0700

master: remove con_ad_type (corresponds to tape_id does not match).

commit e906f02ea898ffda314749ecfb2bcf4152a1da01
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 07:56:12 2018 -0700

base2ad: change ode_taylor -> taylor_ode.

commit 706cda6e746c150c196352526945e3a46f050c48
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 07:53:43 2018 -0700

base2ad: make mul_level_adolc_ode.cpp more like base2ad.cpp.

commit c438d447499d2d76b6676155f3c93b86a965dc06
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 07:33:00 2018 -0700

base2ad: mul_level_ode.cpp: use typedefs and make more like base2ad.cpp.

commit 3f0b37e04057b9a790654c123ec887d805456a39
Merge: 7d7f695e cc02600d
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 06:46:17 2018 -0700

Merge branch 'master' into base2ad

commit cc02600d325bfd72348a194c45a87ee982ed1320
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 06:40:43 2018 -0700

master: improve ode_taylor.cpp and move it to taylor_ode.cpp.

commit 97bfaac023564cf34a265c80ddc6b2e4f9dac2c5
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 06:31:10 2018 -0700

master: change ode_taylor.cpp to use same notation as taylor_ode.omh.

commit 7d7f695e3cb41efb7958632fe5cfd6699cdb2acb
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 06:00:35 2018 -0700

base2ad: put base2ad in separate file and document it.

commit ac3fdbc24d4836537aa2f845a9ec26b188388991
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 05:58:45 2018 -0700

base2ad: first working version of base2ad.

commit 78014e8ef632e9fc804ebea74422acf4c64f0c69
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 04:34:57 2018 -0700

master: Advance to cppad-20180916

commit 0cd2a999f9566655fda723482d2fd060b6867e8e
Author: Brad Bell <bradbell@…>
Date: Sun Sep 16 04:34:47 2018 -0700

master: example general.cpp: include base_require during testing.

commit fdc230eba87cf19312cddd92d5dd66fe2434aa60
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 15:34:33 2018 -0700

master: move AD theory for Taylor's ODE method to separate section.

commit c02959c71c4ba48ceb54d3caa644c4d4d3e3e320
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 14:28:45 2018 -0700

master: batch_edit.sh: add to plan.

commit 3e72aad050219ad4993fccc3e2cc94f0abd7c496
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 08:51:41 2018 -0700

master: fun_construct.hpp: use sparse_pack and sparse_list assignment operators.

commit eb5906dfd75e5fa557ac307dadd0b860c33733ed
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 07:31:57 2018 -0700

master: improve move semantic version of ADFun assignment operator.

commit b183932db18501467b5ea2e238ccfa737d76020a
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 06:54:02 2018 -0700

master: add move semantic version of function assignment.

commit 38f8a5a553d2dbbbe7ed8158077548cc80dfe643
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 06:05:47 2018 -0700

master: ADFun assignment operator: remove resizes that are no longer necessary.

commit 2d4a7245e06a6dc5e3e83ad3e09726340201821e
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 05:33:18 2018 -0700

master: remove Erase from recorder and player (no longer used).

commit 75736474de93a6064329a9f578ae4f8383b0fa78
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 05:21:18 2018 -0700

master: ad_fun.hpp: convert dep_parameter_ from vector -> pod_vector.

commit 5ed186c4ecef2958913325694100e5384f03d8ec
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 05:12:25 2018 -0700

master: Advance to cppad-20180915

commit b99ba06f766d64233b1c0ae66e590d3a189467a6
Author: Brad Bell <bradbell@…>
Date: Sat Sep 15 05:12:14 2018 -0700

master: ad_fun.hpp: change dep_taddr_ and ind_taddr_ from vector -> pod_vector.

commit 7872c7f69a6618176ae76dd2bf64a0fa71a65d14
Author: Brad Bell <bradbell@…>
Date: Fri Sep 14 08:32:22 2018 -0700

master: ad_fun.hpp: add more comments about location of doxygen documentation.

commit 73c0d52cb060ca7bbdc0d2fe6a956f0936fdeed2
Author: Brad Bell <bradbell@…>
Date: Fri Sep 14 07:40:24 2018 -0700

master: Advance to cppad-20180914

commit d24872e359b53a1863bd43af4f3a61ec77c149bf
Author: Brad Bell <bradbell@…>
Date: Fri Sep 14 07:40:14 2018 -0700

master: ad_fun.hpp: use full path when referencing files where doxygen is.

commit bf73b3fc3fa88abab2fc1913515b5525c62d5290
Author: Brad Bell <bradbell@…>
Date: Thu Sep 13 07:54:50 2018 -0700

master: Advance to cppad-20180913

commit 5fb67b72e237e00e021e4e40f08dc4ba6d53c224
Author: Brad Bell <bradbell@…>
Date: Thu Sep 13 07:54:29 2018 -0700

master: wish_list.omh: add AD<Base> Functions from Base Functions item.

commit 690ed2af5feb2d4a36267acf3669d0d02aef6158
Author: Brad Bell <bradbell@…>
Date: Mon Aug 27 12:19:14 2018 -0700

master: move eigen_vector from global namspace to CppAD namespace.

commit 3ac03943e02e60832b1f8a3311a96cf45b810c21
Author: Brad Bell <bradbell@…>
Date: Mon Aug 27 06:29:29 2018 -0700

master: Advance to cppad-20180827

commit a74a90ca37c3c290bbe4c71fb6fffccc5f8b44e3
Author: Brad Bell <bradbell@…>
Date: Mon Aug 27 06:29:17 2018 -0700

master: dynamic parameters: improve discussion and example.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 7.6 KB
Line 
1#! /bin/bash -e
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
4#
5# CppAD is distributed under multiple licenses. This distribution is under
6# the terms of the
7#                     Eclipse Public License Version 1.0.
8#
9# A copy of this license is included in the COPYING file of this distribution.
10# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
11# -----------------------------------------------------------------------------
12if [ "$0" != 'bin/check_all.sh' ]
13then
14        echo "bin/check_all.sh: must be executed from its parent directory"
15        exit 1
16fi
17debug_all='no'
18if [ "$1" != '' ]
19then
20        debug_all='yes'
21        if [ "$1" != 'debug_all' ]
22        then
23                echo 'usage: bin/check_all.sh [debug_all]'
24                exit 1
25        fi
26fi
27# -----------------------------------------------------------------------------
28check_all_warn() {
29cat << EOF > check_all.$$
30# Lines that describe where error is
31/^In file included from/d
32/: note:/d
33#
34# Ipopt has sign conversion warnings
35/\/coin\/.*-Wsign-conversion/d
36#
37# Adolc has multiple types of conversion warnings
38/\/adolc\/.*-W[a-z-]*conversion/d
39/\/adolc\/.*-Wshorten-64-to-32/d
40#
41# Lines describing the error begin with space
42/^ /d
43#
44# Lines summarizing results
45/^[0-9]* warnings generated/d
46EOF
47        sed $top_srcdir/check_all.err -f check_all.$$ > $top_srcdir/check_all.warn
48        rm check_all.$$
49}
50# -----------------------------------------------------------------------------
51echo_log_eval() {
52        echo $*
53        echo $* >> $top_srcdir/check_all.log
54        if ! eval $* >> $top_srcdir/check_all.log 2> $top_srcdir/check_all.err
55        then
56                tail $top_srcdir/check_all.err
57                echo 'Error: see check_all.err, check_all.log'
58                exit 1
59        fi
60        check_all_warn
61        count=`wc -l $top_srcdir/check_all.warn | sed -e 's|^\([0-9]*\) .*|\1|'`
62        if [ "$count" != '0' ]
63        then
64                head "$top_srcdir/check_all.warn"
65                echo 'Warning: see check_all.warn, check_all.log'
66                exit 1
67        fi
68        rm $top_srcdir/check_all.warn $top_srcdir/check_all.err
69}
70echo_log() {
71        echo $*
72        echo $* >> $top_srcdir/check_all.log
73}
74random_01() {
75        set +e
76        eval random_01_$1="`expr $RANDOM % 2`"
77        set -e
78}
79# -----------------------------------------------------------------------------
80if [ -e check_all.log ]
81then
82        echo "rm check_all.log"
83        rm check_all.log
84fi
85top_srcdir=`pwd`
86echo "top_srcdir = $top_srcdir"
87# ---------------------------------------------------------------------------
88# circular shift program list and set program to first entry in list
89next_program() {
90        program_list=`echo "$program_list" | sed -e 's| *\([^ ]*\) *\(.*\)|\2 \1|'`
91        program=`echo "$program_list" | sed -e 's| *\([^ ]*\).*|\1|'`
92}
93# ---------------------------------------------------------------------------
94if [ -e "$HOME/prefix/cppad" ]
95then
96        echo_log_eval rm -r $HOME/prefix/cppad
97fi
98# ---------------------------------------------------------------------------
99version=`version.sh get`
100# ---------------------------------------------------------------------------
101random_01 tarball
102if [ "$random_01_tarball" == '0' ]
103then
104        tarball="cppad-$version.epl.tgz"
105else
106        tarball="cppad-$version.gpl.tgz"
107fi
108#
109random_01 compiler
110if [ "$random_01_compiler" == '0' ]
111then
112        compiler='default'
113else
114        compiler='--clang'
115fi
116random_01 standard
117if [ "$random_01_standard" == '0' ]
118then
119        standard='--c++98 --no_adolc --no_sacado'
120else
121        standard='--c++11'
122fi
123#
124if [ "$debug_all" == 'yes' ]
125then
126        package_vector='--cppad_vector'
127        debug_which='--debug_all'
128else
129        random_01 debug_which
130        if [ "$random_01_debug_which" == '0' ]
131        then
132                debug_which='--debug_even'
133        else
134                debug_which='--debug_odd'
135        fi
136        #
137        random_01 package_vector
138        if [ "$random_01_package_vector" == '0' ]
139        then
140                package_vector='--boost_vector'
141        else
142                package_vector='--eigen_vector'
143        fi
144fi
145cat << EOF
146tarball         = $tarball
147compiler        = $compiler
148standard        = $standard
149debug_which     = $debug_which
150package_vector  = $package_vector
151EOF
152cat << EOF >> $top_srcdir/check_all.log
153tarball         = $tarball
154compiler        = $compiler
155standard        = $standard
156debug_which     = $debug_which
157package_vector  = $package_vector
158EOF
159if [ "$compiler" == 'default' ]
160then
161        compiler=''
162fi
163if [ "$standard" == '--c++11' ]
164then
165        standard='' # default for run_cmake.sh
166fi
167# ---------------------------------------------------------------------------
168# Run automated checks for the form bin/check_*.sh with a few exceptions.
169# In addition, run ~bradbell/bin/check_copyright.sh.
170list=`ls bin/check_* | sed \
171        -e '/check_all.sh/d' \
172        -e '/check_jenkins.sh/d' \
173        -e '/check_svn_dist.sh/d'`
174for check in check_copyright.sh $list
175do
176        echo_log_eval $check
177done
178# ---------------------------------------------------------------------------
179# Create package to run test in
180echo "bin/package.sh"
181bin/package.sh
182# -----------------------------------------------------------------------------
183# choose which tarball to use for testing
184echo_log_eval cd build
185echo_log_eval rm -rf cppad-$version
186echo_log_eval tar -xzf $tarball
187echo_log_eval cd cppad-$version
188# -----------------------------------------------------------------------------
189echo_log_eval bin/run_cmake.sh $compiler $standard $debug_which $package_vector
190echo_log_eval cd build
191# -----------------------------------------------------------------------------
192echo_log_eval make check
193# -----------------------------------------------------------------------------
194skip=''
195for package in adolc eigen ipopt fadbad sacado
196do
197        dir=$HOME/prefix/$package
198        if [ ! -d "$dir" ]
199        then
200                skip="$skip $package"
201        elif echo $standard | grep "no_$package" > /dev/null
202        then
203                skip="$skip $package"
204        fi
205done
206#
207# extra speed tests not run with option specified
208for option in onetape colpack optimize atomic memory boolsparsity
209do
210        echo_eval speed/cppad/speed_cppad correct 432 $option
211done
212if ! echo "$skip" | grep 'adolc' > /dev/null
213then
214        echo_eval speed/adolc/speed_adolc correct         432 onetape
215        echo_eval speed/adolc/speed_adolc sparse_jacobian 432 onetape colpack
216        echo_eval speed/adolc/speed_adolc sparse_hessian  432 onetape colpack
217fi
218#
219# ----------------------------------------------------------------------------
220# extra multi_thread tests
221program_list=''
222for threading in bthread openmp pthread
223do
224        program="example/multi_thread/${threading}"
225        program="$program/example_multi_thread_${threading}"
226        if [ ! -e $program ]
227        then
228                skip="$skip $program"
229        else
230                program_list="$program_list $program"
231                #
232                # fast cases, test for all programs
233                echo_log_eval ./$program a11c
234                echo_log_eval ./$program simple_ad
235                echo_log_eval ./$program team_example
236        fi
237done
238if [ "$program_list" != '' ]
239then
240        # test_time=1,max_thread=4,mega_sum=1
241        next_program
242        echo_log_eval ./$program harmonic 1 4 1
243        #
244        # test_time=1,max_thread=4,num_solve=100
245        next_program
246        echo_log_eval ./$program multi_atomic 1 4 100
247        #
248        # test_time=1,max_thread=4,num_solve=100
249        next_program
250        echo_log_eval ./$program checkpoint 1 4 100
251        #
252        # test_time=2,max_thread=4,num_zero=20,num_sub=30,num_sum=50,use_ad=true
253        next_program
254        echo_log_eval ./$program multi_newton 2 4 20 30 50 true
255        #
256fi
257#
258# print_for test
259program='example/print_for/example_print_for'
260if [ ! -e "$program" ]
261then
262        skip="$skip $program"
263else
264        echo_log_eval $program
265        $program | sed -e '/^Test passes/,$d' > junk.1.$$
266        $program | sed -e '1,/^Test passes/d' > junk.2.$$
267        if diff junk.1.$$ junk.2.$$
268        then
269                rm junk.1.$$ junk.2.$$
270                echo_log_eval echo "print_for: OK"
271        else
272                echo_log_eval echo "print_for: Error"
273                exit 1
274        fi
275fi
276#
277echo_log_eval make install
278#
279if [ "$skip" != '' ]
280then
281        echo_log_eval echo "check_all.sh: skip = $skip"
282        exit 1
283fi
284# ----------------------------------------------------------------------------
285echo "$0: OK" >> $top_srcdir/check_all.log
286echo "$0: OK"
287exit 0
Note: See TracBrowser for help on using the repository browser.