URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 107 |
Rev 1765 |
#!/bin/sh
|
#!/bin/sh
|
|
|
# A shell script to run the test suite on the DJGPP version of GDB.
|
# A shell script to run the test suite on the DJGPP version of GDB.
|
|
|
ORIGDIR=`pwd`
|
ORIGDIR=`pwd`
|
GDB=${ORIGDIR}/../gdb.exe
|
GDB=${ORIGDIR}/../gdb.exe
|
SUBDIRS=`find $ORIGDIR -type d ! -ipath $ORIGDIR`
|
SUBDIRS=`find $ORIGDIR -type d ! -ipath $ORIGDIR`
|
|
|
for d in $SUBDIRS
|
for d in $SUBDIRS
|
do
|
do
|
cd $d
|
cd $d
|
echo "Running tests in $d..."
|
echo "Running tests in $d..."
|
for f in *.out
|
for f in *.out
|
do
|
do
|
test -f $f || break
|
test -f $f || break
|
base=`basename $f .out`
|
base=`basename $f .out`
|
if test "${base}" = "dbx" ; then
|
if test "${base}" = "dbx" ; then
|
options=-dbx
|
options=-dbx
|
else
|
else
|
options=
|
options=
|
fi
|
fi
|
$GDB ${options} < ${base}.in 2>&1 \
|
$GDB ${options} < ${base}.in 2>&1 \
|
| sed -e '/GNU gdb /s/ [.0-9][.0-9]*//' \
|
| sed -e '/GNU gdb /s/ [.0-9][.0-9]*//' \
|
-e '/^Copyright/s/[12][0-9][0-9][0-9]/XYZZY/g' \
|
-e '/^Copyright/s/[12][0-9][0-9][0-9]/XYZZY/g' \
|
-e '/Starting program: /s|[A-z]:/.*/||' \
|
-e '/Starting program: /s|[A-z]:/.*/||' \
|
-e '/main (/s/=0x[0-9a-f][0-9a-f]*/=XYZ/g' \
|
-e '/main (/s/=0x[0-9a-f][0-9a-f]*/=XYZ/g' \
|
> ${base}.tst
|
> ${base}.tst
|
if diff --binary -u ${base}.out ${base}.tst ; then
|
if diff --binary -u ${base}.out ${base}.tst ; then
|
rm -f ${base}.tst
|
rm -f ${base}.tst
|
fi
|
fi
|
done
|
done
|
done
|
done
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.