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
|
if test "$#" -eq 0
|
||||||
then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sum=
|
find "$@" -path '*/gdb/*/tests/*/build.log.gz' -print | while read f
|
||||||
for f in "$@"
|
|
||||||
do
|
do
|
||||||
echo $f
|
echo $f 1>&2
|
||||||
pid=`basename $f | sed -e 's/^[^0-9]*-\([0-9]*\)-\([^-]*\)-.*$/\1/'`
|
ver=`echo "${f}" | sed -e 's,^.*gdb/\([-0-9\.]*\)/tests/\([^/]*\)/.*$,\1,'`
|
||||||
isa=`basename $f | sed -e 's/^[^0-9]*-\([0-9]*\)-\([^-]*\)-.*$/\2/'`
|
isa=`echo "${f}" | sed -e 's,^.*gdb/\([-0-9\.]*\)/tests/\([^/]*\)/.*$,\2,'`
|
||||||
# begin 644 gdb-i386-redhat-linux-gnu.tar.bz2
|
# begin 644 gdb-i386-redhat-linux-gnu.tar.bz2
|
||||||
if grep '^begin [0-9]* ' $f && grep '^end$' $f
|
for t in sum log ; do
|
||||||
then
|
mkdir -p tests/${ver}
|
||||||
for t in sum log
|
gunzip < $f | uudecode -o /dev/stdout | bunzip2 \
|
||||||
do
|
| tar xpvOf - gdb-${isa}-redhat-linux-gnu.$t \
|
||||||
uudecode -o /dev/stdout $f | bunzip2 \
|
> tests/gdb-${ver}-${isa}.$t
|
||||||
| tar xpvOf - gdb-${isa}-redhat-linux-gnu.$t \
|
done
|
||||||
> gdb-${pid}-${isa}.$t
|
echo "${ver}"
|
||||||
done
|
done | sort -u | while read ver ; do
|
||||||
fi
|
( cd tests && /home/cygnus/cagney/bin/do-analize-tests gdb-${ver}-*.sum )
|
||||||
|
echo "$PWD/tests/*.html"
|
||||||
|
ls -1 tests/*.html 1>&2
|
||||||
done
|
done
|
||||||
|
|
||||||
/home/cygnus/cagney/bin/do-analize-tests gdb-${pid}-*.sum
|
|
||||||
|
Loading…
Reference in New Issue
Block a user