blob: 26b29863cbe315d2c4274c95500ea1a8f87c1d70 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001#! /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.
14set -e
15
16# Don't fail if we cannot decompress the file.
17bunzip2 -c $srcdir/testfile.bz2 > testfile 2>/dev/null || exit 0
18
19# Don't fail if we cannot decompress the file.
20bunzip2 -c $srcdir/testfile2.bz2 > testfile2 2>/dev/null || exit 0
21
22./get-aranges testfile testfile2 > get-aranges.out
23
24cmp get-aranges.out - <<"EOF"
250x804842b: not in range
26CU name: "m.c"
27CU name: "m.c"
28CU name: "m.c"
290x804845a: not in range
300x804845b: not in range
31CU name: "b.c"
32CU name: "b.c"
33CU name: "b.c"
340x8048466: not in range
350x8048467: not in range
36CU name: "f.c"
37CU name: "f.c"
38CU name: "f.c"
390x8048472: not in range
40 [ 0] start: 0x804842c, length: 46, cu: 11
41CU name: "m.c"
42 [ 1] start: 0x804845c, length: 10, cu: 202
43CU name: "b.c"
44 [ 2] start: 0x8048468, length: 10, cu: 5628
45CU name: "f.c"
460x804842b: not in range
470x804842c: not in range
480x804843c: not in range
490x8048459: not in range
500x804845a: not in range
510x804845b: not in range
520x804845c: not in range
530x8048460: not in range
540x8048465: not in range
550x8048466: not in range
560x8048467: not in range
570x8048468: not in range
580x8048470: not in range
590x8048471: not in range
600x8048472: not in range
61 [ 0] start: 0x10000470, length: 32, cu: 11
62CU name: "b.c"
63 [ 1] start: 0x10000490, length: 32, cu: 2429
64CU name: "f.c"
65 [ 2] start: 0x100004b0, length: 100, cu: 2532
66CU name: "m.c"
67EOF
68
69rm -f testfile testfile2 get-aranges.out
70
71exit 0