This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for readelf testsuite
- To: "Chris G. Demetriou" <cgd at sibyte dot com>
- Subject: Patch for readelf testsuite
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 30 Mar 2001 11:05:32 -0800
- Cc: binutils at sources dot redhat dot com, nickc at redhat dot com
- References: <20010328144344.A22625@lucon.org> <200103282312.SAA01149@ives.lkg.dec.com> <20010328154833.A23617@lucon.org> <mailpost.985824467.31797@postal.sibyte.com> <yov5y9tnm8ll.fsf@highland.sibyte.com>
On Fri, Mar 30, 2001 at 10:09:58AM -0800, Chris G. Demetriou wrote:
>
> Was this run through the testsuite on any particular architectures?
>
Yes/No. Yes, I ran it on Linux/ia32. No, it just skipped Linux/ia32.
Here is a patch.
H.J.
---
2001-03-30 H.J. Lu <hjl@gnu.org>
* binutils-all/readelf.exp: Run on more ELF targets.
Index: testsuite/binutils-all/readelf.exp
===================================================================
RCS file: /work/cvs/gnu/binutils/binutils/testsuite/binutils-all/readelf.exp,v
retrieving revision 1.1.1.5
diff -u -p -r1.1.1.5 readelf.exp
--- testsuite/binutils-all/readelf.exp 2001/03/15 22:51:57 1.1.1.5
+++ testsuite/binutils-all/readelf.exp 2001/03/30 19:00:28
@@ -218,11 +218,38 @@ proc readelf_test { options binary_file
# For now be paranoid and assume that if ELF is not mentioned
# in the target string, then the target is not an ELF based port.
-if ![istarget "*-*elf"] then {
+if { ![istarget i?86-*-sysv4*] \
+ && ![istarget i?86-*-unixware] \
+ && ![istarget i?86-*-elf*] \
+ && ![istarget i?86-*-linux*] \
+ && ![istarget ia64-*-elf*] \
+ && ![istarget ia64-*-linux*] \
+ && ![istarget m68k-*-linux*] \
+ && ![istarget mips*-*-irix5*] \
+ && ![istarget powerpc-*-elf*] \
+ && ![istarget powerpc-*-linux*] \
+ && ![istarget powerpc-*-sysv4*] \
+ && ![istarget sparc*-*-elf] \
+ && ![istarget sparc*-*-solaris2*] \
+ && ![istarget sparc*-*-linux*] \
+ && ![istarget arm*-*-linux*] \
+ && ![istarget alpha*-*-linux*] } {
verbose "$READELF is only intended for ELF targets" 2
return
}
+if { [istarget i?86-*-linuxaout*] \
+ || [istarget i?86-*-linuxoldld*] \
+ || [istarget m68k-*-linuxaout*] } {
+ verbose "$READELF is only intended for ELF targets" 2
+ return
+}
+
+if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } {
+ verbose "$READELF is only intended for ELF targets" 2
+ return
+}
+
if ![is_remote host] {
if {[which $READELF] == 0} then {
perror "$READELF does not exist"
@@ -270,4 +297,4 @@ if [is_remote host] {
# The xfail targets here do not default to DWARF2 format debug information
# The symptom is that the output of 'readelf -wi' is empty.
-readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-*}
+readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-* *-*-linux*}