work with new log directory.
This commit is contained in:
parent
5ced33ee9c
commit
2b428b9e37
33
gdb2fail.sh
33
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
|
||||
|
Loading…
Reference in New Issue
Block a user