[m-dev.] diff: changes to test_mercury
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Dec 14 18:41:38 AEDT 1999
These changes have been in the version of test_mercury
that we're actually using, i.e. the one in
/home/mercury/public/test_mercury/scripts,
for a while now.
----------
Estimated hours taken: 0.5
tools/test_mercury:
- include /home/mercury/public/$FULLARCH in $PATH,
so that we get the version of sed that we need
for alpha-dec-osf3.2.
- avoid checking out extras/clpr twice
- use { ... } rather than ( ... ) to avoid creating
unnecessary processes
- add a cvs tag for the release when we create the
stable / unstable tar files
Workspace: /mnt/munkora/home/clp/mercury/public/test_mercury
Index: scripts/mercury/tools/test_mercury
===================================================================
RCS file: /home/staff/zs/imp/mercury/tools/test_mercury,v
retrieving revision 1.103
diff -u -d -r1.103 test_mercury
--- scripts/mercury/tools/test_mercury 1999/11/18 03:34:57 1.103
+++ scripts/mercury/tools/test_mercury 1999/12/14 07:39:04
@@ -24,6 +24,7 @@
PATH="/home/mercury/public/egcs-1.1b/$FULLARCH/bin:$PATH"
PATH="/home/mercury/public/autoconf-2.4/$FULLARCH/bin:$PATH"
PATH="/home/mercury/public/sicstus3/$HOST:$PATH"
+PATH="/home/mercury/public/$FULLARCH:$PATH"
PATH="/home/mercury/public/$HOST:$PATH"
export PATH
@@ -231,6 +232,7 @@
cvs checkout $CHECKOUT_OPTS mercury tests || { false; exit 1; }
case $HOST in
murlibobo|kryten|taifun|quicksilver|hg|hydra)
+ [ -d mercury/extras/clpr/CVS ] ||
(cd mercury/extras && cvs checkout $CHECKOUT_OPTS clpr) ||
{ false; exit 1; }
;;
@@ -524,7 +526,7 @@
EXTRA_MLFLAGS="-static" &&
./poly > poly.$grade.out &&
mprof -v -m -c > poly.$grade.mprof 2>&1 &&
- (diff -u poly.mprof-exp poly.$grade.mprof || true) &&
+ { diff -u poly.mprof-exp poly.$grade.mprof || true; } &&
cp Prof.CallPair poly.$grade.CallPair &&
cp Prof.MemoryWords poly.$grade.MemoryWords &&
cp Prof.MemoryCells poly.$grade.MemoryCells &&
@@ -569,26 +571,38 @@
fullname=$fullarch
;;
esac
+# cvs does not allow `.' in tag names, so we use `_' instead
+fullname_tag=`echo $fullname | tr . _`
{
cd $DIR/mercury &&
mmake bindist &&
cd .. &&
- ( [ -d $UNSTABLE ] || mkdir $UNSTABLE ) &&
+ { [ -d $UNSTABLE ] || mkdir $UNSTABLE; } &&
rm -f $UNSTABLE/mercury-*.$fullname.tar.gz &&
mv mercury/mercury-$version.$fullarch.tar.gz \
- $UNSTABLE/mercury-$version.$fullname.tar.gz
+ $UNSTABLE/mercury-$version.$fullname.tar.gz &&
+ :
+ echo "test_mercury tagging stable rotd, starting at `date`" 1>&2 &&
+ cvs rtag -d unstable-rotd-$fullname_tag mercury clpr tests &&
+ cvs tag unstable-rotd-$fullname_tag mercury tests &&
+ echo "test_mercury tagging unstable rotd, finished at `date`" 1>&2
} || status=1
case $status in
0) {
cd $DIR &&
- ( [ -d $STABLE ] || mkdir $STABLE ) &&
+ { [ -d $STABLE ] || mkdir $STABLE; } &&
rm -f $STABLE/mercury-*.$fullname.tar.gz &&
- $LN $UNSTABLE/mercury-$version.$fullname.tar.gz $STABLE &&
+ $LN $UNSTABLE/mercury-$version.$fullname.tar.gz \
+ $STABLE/mercury-$version.$fullname.tar.gz &&
rsh $BETA_FTPHOST "rm -f $BETA_FTPDIR/mercury-*.$fullname.tar.gz" &&
rcp $STABLE/mercury-$version.$fullname.tar.gz \
- $BETA_FTPHOST:$BETA_FTPDIR
+ $BETA_FTPHOST:$BETA_FTPDIR &&
+ echo "test_mercury tagging stable rotd, starting at `date`" 1>&2 &&
+ cvs rtag -d stable-rotd-$fullname_tag mercury clpr tests &&
+ cvs tag stable-rotd-$fullname_tag mercury tests &&
+ echo "test_mercury tagging stable rotd, finished at `date`" 1>&2
} || status=1
;;
esac
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list