Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /trunk/rtest/scripts/run_sh.in
ViewVC logotype

Annotation of /trunk/rtest/scripts/run_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1179 - (view) (download)

1 : jhr 1178 #!/bin/sh
2 :     #
3 :     # A script for running the Diderot regression tests.
4 :     #
5 :     # @configure_input@
6 :     #
7 :    
8 : jhr 1179 # set up the path so that we can find diderotc and unu
9 :     #
10 :     PATH=/bin:/usr/bin:@TEEM_DIR@/bin:@DIDEROT_BINDIR@
11 : jhr 1178
12 :     # this script should be run from the rtest directory
13 :     #
14 :     HERE=$(pwd)
15 :     if [ ! -d $HERE/tests ] ; then
16 :     echo "run script from rtest directory"
17 :     exit 1
18 :     fi
19 :    
20 :     # get a list of all of the tests (one per directory)
21 :     #
22 :     TESTS=$(cd tests; ls)
23 :    
24 :     DATE=$( date +"%F-%H-%M-%S" )
25 :    
26 :     for t in $TESTS ; do
27 :     ( cd $t;
28 :     echo -n "checking $t ..." >> $LOG
29 :     diderotc $t.diderot
30 :     if [ "$?" -eq "0" ] ; then
31 :     echo -n " compile succeeded ..." >> $LOG
32 :     ./$t
33 :     if [ "$?" -eq "0" ] ; then
34 :     echo -n " execution succeeded ..." >> $LOG
35 :     ./assess.sh
36 :     else
37 :     echo " execution failed" >> $LOG
38 :     fi
39 :     else
40 :     echo " compile failed" >> $LOG
41 :     fi
42 :     done

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0