blob: 44f4a525babb223cfb1ce8829d3c9fcf82e101cf [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001#! /bin/sh
Roland McGrathc373d852006-10-10 00:25:21 +00002# Copyright (C) 1999, 2000, 2002, 2005, 2006 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02003# This file is part of elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00004# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
Roland McGrath6d0c2e82006-04-05 00:59:43 +00005#
Mark Wielaardde2ed972012-06-05 17:15:16 +02006# 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.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000010#
Mark Wielaardde2ed972012-06-05 17:15:16 +020011# elfutils is distributed in the hope that it will be useful, but
Ulrich Drepper361df7d2006-04-04 21:38:57 +000012# WITHOUT ANY WARRANTY; without even the implied warranty of
Mark Wielaardde2ed972012-06-05 17:15:16 +020013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000015#
Mark Wielaardde2ed972012-06-05 17:15:16 +020016# 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/>.
Ulrich Drepper361df7d2006-04-04 21:38:57 +000018
Roland McGrathc373d852006-10-10 00:25:21 +000019. $srcdir/test-subr.sh
20
21tempfiles arextract.test
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000022
Mark Wielaard86be7922013-04-26 23:44:25 +020023archive=${abs_top_builddir}/libelf/libelf.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000024if 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.
Mark Wielaard86be7922013-04-26 23:44:25 +020029 for f in ${abs_top_builddir}/libelf/*.o; do
30 testrun ${abs_builddir}/arextract $archive `basename $f` arextract.test || exit 1
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000031 cmp $f arextract.test || {
32 echo "Extraction of $1 failed"
33 exit 1
34 }
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000035 done
36
37 echo "done"
38fi
39
40exit 0