work with new log directory.

This commit is contained in:
cagney 2005-04-02 22:39:14 +00:00
parent 5ced33ee9c
commit 2b428b9e37
1 changed files with 16 additions and 17 deletions

View File

@ -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