diff options
author | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:11 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:11 +0000 |
commit | 252b5132c753830d5fd56823373aed85f2a0db63 (patch) | |
tree | 1af963bfd8d3e55167b81def4207f175eaff3a56 /binutils/sanity.sh | |
download | binutils-gdb-252b5132c753830d5fd56823373aed85f2a0db63.tar.gz |
19990502 sourceware importbinu_ss_19990502
Diffstat (limited to 'binutils/sanity.sh')
-rwxr-xr-x | binutils/sanity.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/binutils/sanity.sh b/binutils/sanity.sh new file mode 100755 index 00000000000..942cabf9ac0 --- /dev/null +++ b/binutils/sanity.sh @@ -0,0 +1,50 @@ +#!/bin/sh +### quick sanity test for the binutils. +### +### This file was written and is maintained by K. Richard Pixley, +### rich@cygnus.com. + +### fail on errors +set -e + +### first arg is directory in which binaries to be tested reside. +case "$1" in +"") BIN=. ;; +*) BIN="$1" ;; +esac + +### size +for i in size objdump nm ar strip ranlib ; do + ${BIN}/size ${BIN}/$i > /dev/null +done + +### objdump +for i in size objdump nm ar strip ranlib ; do + ${BIN}/objdump -ahifdrtxsl ${BIN}/$i > /dev/null +done + +### nm +for i in size objdump nm ar strip ranlib ; do + ${BIN}/nm ${BIN}/$i > /dev/null +done + +### strip +TMPDIR=./binutils-$$ +mkdir ${TMPDIR} + +cp ${BIN}/strip ${TMPDIR}/strip + +for i in size objdump nm ar ranlib ; do + cp ${BIN}/$i ${TMPDIR}/$i + ${BIN}/strip ${TMPDIR}/$i + cp ${BIN}/$i ${TMPDIR}/$i + ${TMPDIR}/strip ${TMPDIR}/$i +done + +### ar + +### ranlib + +rm -rf ${TMPDIR} + +exit 0 |