|
From: <sv...@va...> - 2005-07-24 11:19:33
|
Author: sewardj
Date: 2005-07-24 12:18:41 +0100 (Sun, 24 Jul 2005)
New Revision: 4242
Log:
bugfixes and improvements
Modified:
trunk/auxprogs/gsl16test
Modified: trunk/auxprogs/gsl16test
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/auxprogs/gsl16test 2005-07-24 07:39:17 UTC (rev 4241)
+++ trunk/auxprogs/gsl16test 2005-07-24 11:18:41 UTC (rev 4242)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
=20
# Do an automated test which involves building and regtesting version
# 1.6 of the GNU Scientific Library (gsl). This has proven to be a=20
@@ -23,7 +23,7 @@
=20
if [ $# !=3D 5 ]
then=20
- echo "usage: gsl15test /absolute/name/of/gsl-1.6.tar.gz"
+ echo "usage: gsl15test /absolute/name/of/gsl-1.6-patched.tar.gz"
echo " C-compiler-command" =20
echo " flags-for-C-compiler" =20
echo " Valgrind-command"
@@ -72,27 +72,31 @@
echo "gsl16test: valgrind: " $GSL_VV
echo "gsl16test: vflags: " $GSL_VFLAGS
=20
-rm -rf log.verbose gsl-1.6
+rm -rf log.verbose gsl-1.6-patched summary.txt
=20
echo > log.verbose
=20
+echo > summary.txt
+echo $0 $1 \"$2\" \"$3\" \"$4\" \"$5\" >> summary.txt
+echo >> summary.txt
+
runcmd "Untarring " \
- "rm -rf gsl-1.6 && tar xzf $GSL_FILE" && \
+ "rm -rf gsl-1.6-patched && tar xzf $GSL_FILE" && \
\
runcmd "Configuring " \
- "(cd gsl-1.6 && CC=3D$GSL_CC CFLAGS=3D\"$GSL_CFLAGS\" ./configure=
)" && \
+ "(cd gsl-1.6-patched && CC=3D$GSL_CC CFLAGS=3D\"$GSL_CFLAGS\" ./c=
onfigure)" && \
\
runcmd "Building " \
- "(cd gsl-1.6 && make && make -k check)"
+ "(cd gsl-1.6-patched && make && make -k check)"
=20
echo -n " Collecting reference results "
rm -f out-REF
-(cd gsl-1.6 && for f in $ALL_TESTS ; do ./$f ; done) &> out-REF
+(cd gsl-1.6-patched && for f in $ALL_TESTS ; do ./$f ; done) &> out-REF
echo " ... done"
=20
echo -n " Collecting valgrinded results "
rm -f out-V
-(cd gsl-1.6 && for f in $ALL_TESTS ; do $GSL_VV -v --trace-children=3Dye=
s "$GSL_VFLAGS" ./$f ; done) &> out-V
+(cd gsl-1.6-patched && for f in $ALL_TESTS ; do eval $GSL_VV -v --trace-=
children=3Dyes "$GSL_VFLAGS" ./$f ; done) &> out-V
echo " ... done"
=20
echo -n " Native fails: " && (grep FAIL: out-REF | wc -l)
@@ -100,4 +104,10 @@
echo -n " Valgrind fails: " && (grep FAIL: out-V | wc -l)
echo -n " Valgrind passes: " && (grep PASS: out-V | wc -l)
=20
+(echo -n " Native fails: " && (grep FAIL: out-REF | wc -l)) >> summ=
ary.txt
+(echo -n " Native passes: " && (grep PASS: out-REF | wc -l)) >> summ=
ary.txt
+(echo -n " Valgrind fails: " && (grep FAIL: out-V | wc -l)) >> summar=
y.txt
+(echo -n " Valgrind passes: " && (grep PASS: out-V | wc -l)) >> summar=
y.txt
+echo >> summary.txt
+
echo
|