forked from Imagelibrary/binutils-gdb
Support for building GDB with DJGPP, and running the test suite on
it: * config/djgpp/djconfig.sh: New file. * config/djgpp/config.sed: New file. * config/djgpp/README: New file. * config/djgpp/fnchange.lst: New file. * config/djgpp/djcheck.sh: New file.
This commit is contained in:
32
gdb/config/djgpp/djcheck.sh
Normal file
32
gdb/config/djgpp/djcheck.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
# A shell script to run the test suite on the DJGPP version of GDB.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
GDB=${ORIGDIR}/../gdb.exe
|
||||
SUBDIRS=`find $ORIGDIR -type d ! -ipath $ORIGDIR`
|
||||
|
||||
for d in $SUBDIRS
|
||||
do
|
||||
cd $d
|
||||
echo "Running tests in $d..."
|
||||
for f in *.out
|
||||
do
|
||||
test -f $f || break
|
||||
base=`basename $f .out`
|
||||
if test "${base}" = "dbx" ; then
|
||||
options=-dbx
|
||||
else
|
||||
options=
|
||||
fi
|
||||
$GDB ${options} < ${base}.in 2>&1 \
|
||||
| sed -e '/^GNU gdb /s/ [.0-9][.0-9]*//' \
|
||||
-e '/Starting program: /s|[A-z]:/.*/||' \
|
||||
-e '/main (.*argv=/s/\(argv\|envp\)=0x[0-9a-f][0-9a-f]*/\1=XYZ/g' \
|
||||
> ${base}.tst
|
||||
if diff --binary -u ${base}.out ${base}.tst ; then
|
||||
rm -f ${base}.tst
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user