103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes#! /bin/sh
203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2007 Red Hat, Inc.
303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# This file is part of elfutils.
403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes#
603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# This file is free software; you can redistribute it and/or modify
703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# it under the terms of the GNU General Public License as published by
803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# the Free Software Foundation; either version 3 of the License, or
903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# (at your option) any later version.
1003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes#
1103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# elfutils is distributed in the hope that it will be useful, but
1203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# WITHOUT ANY WARRANTY; without even the implied warranty of
1303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# GNU General Public License for more details.
1503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes#
1603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# You should have received a copy of the GNU General Public License
1703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# along with this program.  If not, see <http://www.gnu.org/licenses/>.
1803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes
1903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes. $srcdir/test-subr.sh
2003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes
2103333823c75a1c1887e923828113a1b0fd12020cElliott Hughestestfiles testfile testfile2
2203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes
2303333823c75a1c1887e923828113a1b0fd12020cElliott Hughestestrun_compare ${abs_builddir}/get-files testfile testfile2 <<\EOF
2403333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 0, asz = 4, osz = 4, ncu = 191
2503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
2603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
2703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/home/drepper/gnu/new-bu/build/ttt/m.c"
2803333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 114, asz = 4, osz = 4, ncu = 5617
2903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
3003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
3103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/home/drepper/gnu/new-bu/build/ttt/b.c"
3203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[2] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h"
3303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[3] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h"
3403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[4] = "/usr/include/bits/types.h"
3503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[5] = "/usr/include/bits/sched.h"
3603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[6] = "/usr/include/bits/pthreadtypes.h"
3703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[7] = "/usr/include/stdio.h"
3803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[8] = "/usr/include/libio.h"
3903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[9] = "/usr/include/wchar.h"
4003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[10] = "/usr/include/_G_config.h"
4103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[11] = "/usr/include/gconv.h"
4203333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 412, asz = 4, osz = 4, ncu = 5752
4303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
4403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
4503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/home/drepper/gnu/new-bu/build/ttt/f.c"
4603333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 0, asz = 4, osz = 4, ncu = 2418
4703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/shoggoth/drepper"
4803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
4903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/shoggoth/drepper/b.c"
5003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[2] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stddef.h"
5103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[3] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stdarg.h"
5203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[4] = "/shoggoth/drepper/<built-in>"
5303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[5] = "/usr/include/bits/types.h"
5403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[6] = "/usr/include/stdio.h"
5503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[7] = "/usr/include/libio.h"
5603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[8] = "/usr/include/_G_config.h"
5703333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 213, asz = 4, osz = 4, ncu = 2521
5803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/shoggoth/drepper"
5903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
6003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/shoggoth/drepper/f.c"
6103333823c75a1c1887e923828113a1b0fd12020cElliott Hughescuhl = 11, o = 267, asz = 4, osz = 4, ncu = 2680
6203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes dirs[0] = "/shoggoth/drepper"
6303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[0] = "???"
6403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes file[1] = "/shoggoth/drepper/m.c"
6503333823c75a1c1887e923828113a1b0fd12020cElliott HughesEOF
6603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes
6703333823c75a1c1887e923828113a1b0fd12020cElliott Hughesexit 0
68