From 2b428b9e37c317ea7f542b2b1746d9c14b35b4ab Mon Sep 17 00:00:00 2001 From: cagney Date: Sat, 2 Apr 2005 22:39:14 +0000 Subject: [PATCH] work with new log directory. --- gdb2fail.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/gdb2fail.sh b/gdb2fail.sh index d2743b4..0481df9 100755 --- a/gdb2fail.sh +++ b/gdb2fail.sh @@ -2,26 +2,25 @@ if test "$#" -eq 0 then - echo usage: $0 beehive log files + echo Usage: $0 /mnt/redhat/dist/DIST/gdb/VERSION/test/ARCH/build.log.gz ... 1>&2 exit 1 fi -sum= -for f in "$@" +find "$@" -path '*/gdb/*/tests/*/build.log.gz' -print | while read f do - echo $f - pid=`basename $f | sed -e 's/^[^0-9]*-\([0-9]*\)-\([^-]*\)-.*$/\1/'` - isa=`basename $f | sed -e 's/^[^0-9]*-\([0-9]*\)-\([^-]*\)-.*$/\2/'` + echo $f 1>&2 + ver=`echo "${f}" | sed -e 's,^.*gdb/\([-0-9\.]*\)/tests/\([^/]*\)/.*$,\1,'` + isa=`echo "${f}" | sed -e 's,^.*gdb/\([-0-9\.]*\)/tests/\([^/]*\)/.*$,\2,'` # begin 644 gdb-i386-redhat-linux-gnu.tar.bz2 - if grep '^begin [0-9]* ' $f && grep '^end$' $f - then - for t in sum log - do - uudecode -o /dev/stdout $f | bunzip2 \ - | tar xpvOf - gdb-${isa}-redhat-linux-gnu.$t \ - > gdb-${pid}-${isa}.$t - done - fi + for t in sum log ; do + mkdir -p tests/${ver} + gunzip < $f | uudecode -o /dev/stdout | bunzip2 \ + | tar xpvOf - gdb-${isa}-redhat-linux-gnu.$t \ + > tests/gdb-${ver}-${isa}.$t + done + echo "${ver}" +done | sort -u | while read ver ; do + ( cd tests && /home/cygnus/cagney/bin/do-analize-tests gdb-${ver}-*.sum ) + echo "$PWD/tests/*.html" + ls -1 tests/*.html 1>&2 done - -/home/cygnus/cagney/bin/do-analize-tests gdb-${pid}-*.sum