[m-rev.] diff: update tools/test_mercury
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Aug 29 15:01:51 AEST 2002
Estimated hours taken: 0.5
Branches: main
tools/test_mercury:
Commit various minor changes that we've already been using for some
time now:
- Print out some additional progress messages with timestamps
- Dump the environment and resource limits to a file in the
test directory; this makes debugging a little easier
- Install the `hlc' and `hlc.agc' grades (for the main branch only)
on roy and ceres.
Workspace: /home/mercury/public/test_mercury/scripts/mercury
Index: tools/test_mercury
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/test_mercury,v
retrieving revision 1.187
diff -u -d -r1.187 test_mercury
--- tools/test_mercury 26 Aug 2002 06:23:13 -0000 1.187
+++ tools/test_mercury 26 Aug 2002 06:24:29 -0000
@@ -309,6 +309,9 @@
trap 'exit_status=$?; rm -f $lockfile; exit $exit_status' 0
echo $HOST > $lockfile
+ulimit -a > $HOSTDIR/ulimit
+env > $HOSTDIR/env
+
#-----------------------------------------------------------------------------#
status=0
@@ -342,6 +345,7 @@
# Test the asm_fast.gc.tr.rt grade, but not on the 0.10 branch,
# since the asm_fast.gc.tr.rt grade is not yet implemented
# in the 0.10 branch.
+ # Likewise for `hlc' and `hlc.agc'
#
# The hl.* grades don't work on the release branch because
# we can only install the header files for one grade, and the
@@ -349,7 +353,7 @@
# fixed on the main branch.
case $BRANCH in
0.10) ;;
- *) INSTALL_LIBGRADES="$INSTALL_LIBGRADES \
+ *) INSTALL_LIBGRADES="hlc hlc.agc $INSTALL_LIBGRADES \
asm_fast.gc.tr.rt hl.gc hl.gc.prof \
hl.gc.memprof hl.gc.tr hl.par.gc" ;;
esac
@@ -853,6 +857,7 @@
# *) ;;
# esac
+echo "test_mercury running tests in grades $GRADES" 1>&2
case "$C_COMPILER" in
gcc) test_error_file="$TESTDIR/logs/test-$BRANCH-$HOST.test_errs" ;;
*) test_error_file=\
@@ -906,6 +911,7 @@
cp Prof.Decl poly.$grade.Decl) || status=1
;;
esac
+ echo "test_mercury finished tests for grade $grade at `date`" 1>&2
done
case $HOST in hg)
echo "test_mercury starting tests for --target asm at `date`" 1>&2
@@ -923,6 +929,7 @@
fi
;;
esac
+echo "test_mercury finished tests at `date`" 1>&2
cd ..
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list