2 # Copyright (C) 1999, 2000, 2002, 2004, 2005 Red Hat, Inc.
3 # This file is part of Red Hat elfutils.
4 # Written by Ulrich Drepper <drepper@redhat.com>, 1999.
5 # Red Hat elfutils is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; version 2 of the License.
9 # Red Hat elfutils is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License along
15 # with Red Hat elfutils; if not, write to the Free Software Foundation,
16 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18 # Red Hat elfutils is an included package of the Open Invention Network.
19 # An included package of the Open Invention Network is a package for which
20 # Open Invention Network licensees cross-license their patents. No patent
21 # license is granted, either expressly or impliedly, by designation as an
22 # included package. Should you wish to participate in the Open Invention
23 # Network licensing program, please visit www.openinventionnetwork.com
24 # <http://www.openinventionnetwork.com>.
26 . $srcdir/test-subr.sh
28 testfiles testfile testfile2
30 testrun_compare ./get-files testfile testfile2 <<\EOF
31 cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 191
33 file[1] = "/home/drepper/gnu/new-bu/build/ttt/m.c"
34 cuhl = 11, o = 114, asz = 4, osz = 4, ncu = 5617
36 file[1] = "/home/drepper/gnu/new-bu/build/ttt/b.c"
37 file[2] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h"
38 file[3] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h"
39 file[4] = "/usr/include/bits/types.h"
40 file[5] = "/usr/include/bits/sched.h"
41 file[6] = "/usr/include/bits/pthreadtypes.h"
42 file[7] = "/usr/include/stdio.h"
43 file[8] = "/usr/include/libio.h"
44 file[9] = "/usr/include/wchar.h"
45 file[10] = "/usr/include/_G_config.h"
46 file[11] = "/usr/include/gconv.h"
47 cuhl = 11, o = 412, asz = 4, osz = 4, ncu = 5752
49 file[1] = "/home/drepper/gnu/new-bu/build/ttt/f.c"
50 cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 2418
52 file[1] = "/shoggoth/drepper/b.c"
53 file[2] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stddef.h"
54 file[3] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stdarg.h"
55 file[4] = "/shoggoth/drepper/<built-in>"
56 file[5] = "/usr/include/bits/types.h"
57 file[6] = "/usr/include/stdio.h"
58 file[7] = "/usr/include/libio.h"
59 file[8] = "/usr/include/_G_config.h"
60 cuhl = 11, o = 213, asz = 4, osz = 4, ncu = 2521
62 file[1] = "/shoggoth/drepper/f.c"
63 cuhl = 11, o = 267, asz = 4, osz = 4, ncu = 2680
65 file[1] = "/shoggoth/drepper/m.c"