diff: changes to tools/test_mercury
Fergus Henderson
fjh at cs.mu.oz.au
Thu Dec 18 21:16:40 AEDT 1997
tools/test_mercury:
- Delete special code to install `.tr' grades;
`.tr' grades are (now) included in the LIBGRADES computed by
configure.in, and so they are installed as part of the usual
`mmake install'.
- Test the `.memprof' grade on murlibobo.
Index: test_mercury
===================================================================
RCS file: /home/staff/zs/imp/mercury/tools/test_mercury,v
retrieving revision 1.62
diff -u -u -r1.62 test_mercury
--- test_mercury 1997/11/11 10:26:00 1.62
+++ test_mercury 1997/12/11 21:56:04
@@ -247,21 +247,10 @@
MMAKEFLAGS=$PARALLEL \
) || status=1
;;
- kryten|murlibobo)
- mmake install MMAKEFLAGS=$PARALLEL || status=1
- mmake install_split_library LIBGRADES= MMAKEFLAGS=$PARALLEL \
- || status=1
- # install the asm_fast.gc.tr and asm_fast.tr grades
- mmake install_grades LIBGRADES="asm_fast.gc.tr asm_fast.tr" \
- MMAKEFLAGS="$PARALLEL" || status=1
- ;;
*)
mmake install MMAKEFLAGS=$PARALLEL || status=1
mmake install_split_library LIBGRADES= MMAKEFLAGS=$PARALLEL \
|| status=1
- # install the asm_fast.gc.tr grade
- mmake install_grades LIBGRADES="asm_fast.gc.tr" \
- MMAKEFLAGS="$PARALLEL" || status=1
;;
esac
case $install_anyway in
@@ -357,6 +346,7 @@
reg reg.gc
asm_fast asm_fast.gc
asm_fast.prof asm_fast.gc.prof
+ asm_fast.gc.memprof
"
;;
kryten)
@@ -387,13 +377,21 @@
./runtests -f "$TEST_MCFLAGS" -c "$TEST_CFLAGS" -g "$grade" \
$PARALLEL || status=1
case $grade in
- *.prof) cd benchmarks
- ./poly > poly.$grade.out
- mprof -V > poly.$grade.mprof 2>&1
- cp Prof.CallPair poly.$grade.CallPair
- cp Prof.Counts poly.$grade.Counts
- cp Prof.Decl poly.$grade.Decl
- cd ..
+ *.memprof*)
+ # we need to link statically for profiling on DEC Alpha
+ (cd benchmarks &&
+ rm -f poly &&
+ mmake poly \
+ GRADE="$grade" \
+ EXTRA_MCFLAGS="$TEST_MCFLAGS" \
+ EXTRA_CFLAGS="$TEST_CFLAGS" \
+ EXTRA_MLFLAGS="-static" &&
+ ./poly > poly.$grade.out &&
+ mprof -v -m -c > poly.$grade.mprof 2>&1 &&
+ cp Prof.CallPair poly.$grade.CallPair &&
+ cp Prof.MemoryWords poly.$grade.MemoryWords &&
+ cp Prof.MemoryCells poly.$grade.MemoryCells &&
+ cp Prof.Decl poly.$grade.Decl) || status=1
;;
esac
done
--
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.
More information about the developers
mailing list