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 1178 - (view) (download)

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

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