Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Copyright (C) 2005 Red Hat, Inc. |
| 3 | # Written by Ulrich Drepper <drepper@redhat.com>, 2005. |
| 4 | # |
| 5 | # This program is Open Source software; you can redistribute it and/or |
| 6 | # modify it under the terms of the Open Software License version 1.0 as |
| 7 | # published by the Open Source Initiative. |
| 8 | # |
| 9 | # You should have received a copy of the Open Software License along |
| 10 | # with this program; if not, you may obtain a copy of the Open Software |
| 11 | # License version 1.0 from http://www.opensource.org/licenses/osl.php or |
| 12 | # by writing the Open Source Initiative c/o Lawrence Rosen, Esq., |
| 13 | # 3001 King Ranch Road, Ukiah, CA 95482. |
| 14 | set -e |
| 15 | |
| 16 | # Don't fail if we cannot decompress the file. |
| 17 | bunzip2 -c $srcdir/testfile.bz2 > testfile 2>/dev/null || exit 0 |
| 18 | |
| 19 | # Don't fail if we cannot decompress the file. |
| 20 | bunzip2 -c $srcdir/testfile2.bz2 > testfile2 2>/dev/null || exit 0 |
| 21 | |
| 22 | # Don't fail if we cannot decompress the file. |
| 23 | bunzip2 -c $srcdir/testfile8.bz2 > testfile8 2>/dev/null || exit 0 |
| 24 | |
| 25 | ./allfcts testfile testfile2 testfile8 > allfcts.out |
| 26 | |
| 27 | diff -u allfcts.out - <<"EOF" |
| 28 | /home/drepper/gnu/new-bu/build/ttt/m.c:5:main |
| 29 | /home/drepper/gnu/new-bu/build/ttt/b.c:4:bar |
| 30 | /home/drepper/gnu/new-bu/build/ttt/f.c:3:foo |
| 31 | /shoggoth/drepper/b.c:4:bar |
| 32 | /shoggoth/drepper/f.c:3:foo |
| 33 | /shoggoth/drepper/m.c:5:main |
| 34 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:107:main |
| 35 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:159:print_version |
| 36 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:173:parse_opt |
| 37 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:201:more_help |
| 38 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:217:process_file |
| 39 | /usr/include/sys/stat.h:375:stat64 |
| 40 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:291:crc32_file |
| 41 | /home/drepper/gnu/elfutils/build/src/../../src/strip.c:313:handle_elf |
| 42 | EOF |
| 43 | |
| 44 | rm -f testfile testfile2 testfile8 allfcts.out |
| 45 | |
| 46 | exit 0 |