This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Munging gcc-testresults@ messages
- From: James Morrison <ja2morri at csclub dot uwaterloo dot ca>
- To: ahs3 at fc dot hp dot com
- Cc: gcc at gcc dot gnu dot org
- Date: 01 Mar 2004 01:14:42 -0500
- Subject: Re: Munging gcc-testresults@ messages
- References: <1078097094.1146.34.camel@fcboson>
Although not directly related, I've been curious about changes for a given
target over time as well. So, I altered the script in contrib/regression to
build in a new directory each day and then diff the make check results against
the previous days. I've attached the patch. I'm not quite sure if it does
what I want since hppa-linux hasn't bootstrapped while I've had this version
of the script and I hadn't noticed. I think what I'll do once I have a bit
of time to play again is to put the results in a dated directory, like I've
done with the build. Then I can keep the results around and remove the
old build.
Index: btest-gcc.sh
===================================================================
RCS file: /cvsroot/gcc/gcc/contrib/regression/btest-gcc.sh,v
retrieving revision 1.2.6.4
diff -u -r1.2.6.4 btest-gcc.sh
--- btest-gcc.sh 28 Sep 2003 06:05:37 -0000 1.2.6.4
+++ btest-gcc.sh 1 Mar 2004 06:01:56 -0000
@@ -41,7 +41,10 @@
# BUILD is a temporary directory that this script will
# delete and recreate, containing the build tree.
-BUILD=$5
+DATE=`date +%Y%m%d`
+YESTERDAY=`date +%Y%m%d --date='yesterday'`
+BUILD="$5-$DATE"
+YESTERDAY="$5-$YESTERDAY"
# you also probably need to set these variables:
# PATH: should contain a native gcc, and a cross gdb.
@@ -65,6 +68,7 @@
PASSES=$STATE/passes
# in REGRESS, a list of testcases we expected to pass but that failed
REGRESS=$STATE/regress
+TESTDIFF=$STATE/diff
# Make sure various files exist.
[ -d $STATE ] || mkdir $STATE
@@ -174,6 +178,9 @@
exit 1
fi
+for LOG in $TESTLOGS ; do
+ diff -u "$YESTERDAY/$LOG" "$LOG" >> $TESTDIFF
+done
# It passed. Update the state.
for LOG in $TESTLOGS ; do
L=`basename $LOG`
i