Brian Silverman | 8649792 | 2018-02-10 19:28:39 -0500 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Copyright (C) 1999, 2000, 2002, 2005, 2006 Red Hat, Inc. |
| 3 | # This file is part of elfutils. |
| 4 | # Written by Ulrich Drepper <drepper@redhat.com>, 1999. |
| 5 | # |
| 6 | # This file is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; either version 3 of the License, or |
| 9 | # (at your option) any later version. |
| 10 | # |
| 11 | # elfutils is distributed in the hope that it will be useful, but |
| 12 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | . $srcdir/test-subr.sh |
| 20 | |
| 21 | tempfiles arextract.test |
| 22 | |
| 23 | archive=${abs_top_builddir}/libelf/libelf.a |
| 24 | if test -f $archive; then |
| 25 | # The file is really available (i.e., no shared-only built). |
| 26 | echo -n "Extracting symbols... $ac_c" |
| 27 | |
| 28 | # The files we are looking at. |
| 29 | for f in ${abs_top_builddir}/libelf/*.o; do |
| 30 | testrun ${abs_builddir}/arextract $archive `basename $f` arextract.test || exit 1 |
| 31 | cmp $f arextract.test || { |
| 32 | echo "Extraction of $1 failed" |
| 33 | exit 1 |
| 34 | } |
| 35 | done |
| 36 | |
| 37 | echo "done" |
| 38 | fi |
| 39 | |
| 40 | exit 0 |