2 ### quick sanity test for the binutils.
4 # This file was written K. Richard Pixley.
5 # Copyright (C) 2007-2023 Free Software Foundation, Inc.
7 # This program is part of GNU Binutils.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
27 ### first arg is directory in which binaries to be tested reside.
34 for i
in size objdump nm
ar strip ranlib
; do
35 ${BIN}/size
${BIN}/$i > /dev
/null
39 for i
in size objdump nm
ar strip ranlib
; do
40 ${BIN}/objdump
-ahifdrtxsl ${BIN}/$i > /dev
/null
44 for i
in size objdump nm
ar strip ranlib
; do
45 ${BIN}/nm
${BIN}/$i > /dev
/null
52 cp ${BIN}/strip
${TMPDIR}/strip
54 for i
in size objdump nm
ar ranlib
; do
55 cp ${BIN}/$i ${TMPDIR}/$i
56 ${BIN}/strip
${TMPDIR}/$i
57 cp ${BIN}/$i ${TMPDIR}/$i
58 ${TMPDIR}/strip
${TMPDIR}/$i