blob: 3fde34b9fafbf00fafb21fde1315a1e84ae1e2c4 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001#! /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.
14set -e
15
16# Don't fail if we cannot decompress the file.
Ulrich Drepper7d65d012005-08-31 15:14:26 +000017bunzip2 -c $srcdir/testfile.bz2 > testfile 2>/dev/null || exit 77
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000018
19# Don't fail if we cannot decompress the file.
Ulrich Drepper7d65d012005-08-31 15:14:26 +000020bunzip2 -c $srcdir/testfile2.bz2 > testfile2 2>/dev/null || exit 77
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000021
22# Don't fail if we cannot decompress the file.
Ulrich Drepper7d65d012005-08-31 15:14:26 +000023bunzip2 -c $srcdir/testfile8.bz2 > testfile8 2>/dev/null || exit 77
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000024
25./allfcts testfile testfile2 testfile8 > allfcts.out
26
27diff -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
42EOF
43
44rm -f testfile testfile2 testfile8 allfcts.out
45
46exit 0