1#! /bin/sh
2# Test for --debug-dump=info+ and finding split unit (in wrong file).
3# Copyright (C) 2018 Red Hat, Inc.
4# This file is part of elfutils.
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# see tests/testfile-dwarf-45.source
22testfiles testfile-splitdwarf-5
23testfiles testfile-world5.dwo
24
25# note, wrong file, renamed as if this contains the correct dwo...
26tempfiles testfile-hello5.dwo
27cp testfile-world5.dwo testfile-hello5.dwo
28
29testrun ${abs_top_builddir}/src/readelf --debug-dump=info+ testfile-splitdwarf-5
30
31exit 0
32