Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Copyright (C) 1999, 2000, 2002 Red Hat, Inc. |
| 3 | # Written by Ulrich Drepper <drepper@redhat.com>, 1999. |
| 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 | ./get-aranges testfile testfile2 > get-aranges.out |
| 23 | |
| 24 | cmp get-aranges.out - <<"EOF" |
| 25 | 0x804842b: not in range |
| 26 | CU name: "m.c" |
| 27 | CU name: "m.c" |
| 28 | CU name: "m.c" |
| 29 | 0x804845a: not in range |
| 30 | 0x804845b: not in range |
| 31 | CU name: "b.c" |
| 32 | CU name: "b.c" |
| 33 | CU name: "b.c" |
| 34 | 0x8048466: not in range |
| 35 | 0x8048467: not in range |
| 36 | CU name: "f.c" |
| 37 | CU name: "f.c" |
| 38 | CU name: "f.c" |
| 39 | 0x8048472: not in range |
| 40 | [ 0] start: 0x804842c, length: 46, cu: 11 |
| 41 | CU name: "m.c" |
| 42 | [ 1] start: 0x804845c, length: 10, cu: 202 |
| 43 | CU name: "b.c" |
| 44 | [ 2] start: 0x8048468, length: 10, cu: 5628 |
| 45 | CU name: "f.c" |
| 46 | 0x804842b: not in range |
| 47 | 0x804842c: not in range |
| 48 | 0x804843c: not in range |
| 49 | 0x8048459: not in range |
| 50 | 0x804845a: not in range |
| 51 | 0x804845b: not in range |
| 52 | 0x804845c: not in range |
| 53 | 0x8048460: not in range |
| 54 | 0x8048465: not in range |
| 55 | 0x8048466: not in range |
| 56 | 0x8048467: not in range |
| 57 | 0x8048468: not in range |
| 58 | 0x8048470: not in range |
| 59 | 0x8048471: not in range |
| 60 | 0x8048472: not in range |
| 61 | [ 0] start: 0x10000470, length: 32, cu: 11 |
| 62 | CU name: "b.c" |
| 63 | [ 1] start: 0x10000490, length: 32, cu: 2429 |
| 64 | CU name: "f.c" |
| 65 | [ 2] start: 0x100004b0, length: 100, cu: 2532 |
| 66 | CU name: "m.c" |
| 67 | EOF |
| 68 | |
| 69 | rm -f testfile testfile2 get-aranges.out |
| 70 | |
| 71 | exit 0 |