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