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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1178 - (download) (annotate)
Tue May 10 22:54:56 2011 UTC (8 years, 3 months ago) by jhr
File size: 772 byte(s)
  Working on testing script
#!/bin/sh
#
# A script for running the Diderot regression tests.
#
# @configure_input@
#

PATH=/bin:/usr/bin:@TEEM_BIN@:@DIDEROT_BIN@

# this script should be run from the rtest directory
#
HERE=$(pwd)
if [ ! -d $HERE/tests ] ; then
  echo "run script from rtest directory"
  exit 1
fi

# get a list of all of the tests (one per directory)
#
TESTS=$(cd tests; ls)

DATE=$( date +"%F-%H-%M-%S" )

for t in $TESTS ; do
( cd $t;
  echo -n "checking $t ..." >> $LOG
  diderotc $t.diderot
  if [ "$?" -eq "0" ] ; then
    echo -n " compile succeeded ..." >> $LOG
    ./$t
    if [ "$?" -eq "0" ] ; then
      echo -n " execution succeeded ..." >> $LOG
      ./assess.sh
    else
      echo " execution failed" >> $LOG
    fi
  else
    echo " compile failed" >> $LOG
  fi
done

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