* config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
[deliverable/binutils-gdb.git] / gdb / config / djgpp / djcheck.sh
CommitLineData
ded59a1e
EZ
1#!/bin/sh
2
3# A shell script to run the test suite on the DJGPP version of GDB.
4
5ORIGDIR=`pwd`
6GDB=${ORIGDIR}/../gdb.exe
7SUBDIRS=`find $ORIGDIR -type d ! -ipath $ORIGDIR`
8
9for d in $SUBDIRS
10do
11 cd $d
12 echo "Running tests in $d..."
13 for f in *.out
14 do
15 test -f $f || break
16 base=`basename $f .out`
17 if test "${base}" = "dbx" ; then
18 options=-dbx
19 else
20 options=
21 fi
22 $GDB ${options} < ${base}.in 2>&1 \
7f668b86
EZ
23 | sed -e '/GNU gdb /s/ [.0-9][.0-9]*//' \
24 -e '/^Copyright/s/[12][0-9][0-9][0-9]/XYZZY/g' \
ded59a1e 25 -e '/Starting program: /s|[A-z]:/.*/||' \
7f668b86 26 -e '/main (/s/=0x[0-9a-f][0-9a-f]*/=XYZ/g' \
ded59a1e
EZ
27 > ${base}.tst
28 if diff --binary -u ${base}.out ${base}.tst ; then
29 rm -f ${base}.tst
30 fi
31 done
32done
33
This page took 0.268414 seconds and 4 git commands to generate.