On Wed, 18 May 2005, Richard Earnshaw wrote: > In my experience, test_summary does the wrong thing if you build and > test a unified source tree, for example, I run it on a unified arm-elf > tree and the subject line comes out as: > > Results for 6.3.50.20050330-cvs -nx testsuite on arm-unknown-elf > > This number seems to come from one of the other packages in the source > tree (gdb?). It certainly only changes when I update my binutils/gdb > sources, not when I update my gcc sources. > > It would be good to get this fixed properly, but I was never much of a > shell wizard.
As test_summary is designed to summarize GCC logs it isn't obvious what is correct for it to do when presented with logs from other software as well - when the logs are for both GCC version x and GDB version y. I think the right approach might be for more complete version information in a better defined format to go in the .sum files so the script can look just for GCC version information and distinguish it from GDB version information. This should include the configure flags from gcc -v so that you don't need to keep config.status around from the build if you want to use test_summary on logs from an installed compiler test. (default_gcc_version in gcc/testsuite/lib/gcc.exp does run gcc -v but everything but the version string only goes in gcc.log not gcc.sum.) If the .sum files had well-defined lines GCC version: ... GCC LAST_UPDATED: ... (should be put in gcc -v so test_summary doesn't need the source directory around) GCC configure flags: ... GCC BOOT_CFLAGS: ... (getting this from the environment when running test_summary seems like a kludge; should be in gcc -v) GCC host: ... GCC build: ... GCC target: ... GDB version: ... then test_summary could process the .sum files more generally and reliably and without needing other information from the source or build trees. -- Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/ [EMAIL PROTECTED] (personal mail) [EMAIL PROTECTED] (CodeSourcery mail) [EMAIL PROTECTED] (Bugzilla assignments and CCs)