xref: /aosp_15_r20/external/elfutils/tests/run-dwfllines.sh (revision 7304104da70ce23c86437a01be71edd1a2d7f37e)
1*7304104dSAndroid Build Coastguard Worker#! /bin/sh
2*7304104dSAndroid Build Coastguard Worker# Copyright (C) 2013 Red Hat, Inc.
3*7304104dSAndroid Build Coastguard Worker# This file is part of elfutils.
4*7304104dSAndroid Build Coastguard Worker#
5*7304104dSAndroid Build Coastguard Worker# This file is free software; you can redistribute it and/or modify
6*7304104dSAndroid Build Coastguard Worker# it under the terms of the GNU General Public License as published by
7*7304104dSAndroid Build Coastguard Worker# the Free Software Foundation; either version 3 of the License, or
8*7304104dSAndroid Build Coastguard Worker# (at your option) any later version.
9*7304104dSAndroid Build Coastguard Worker#
10*7304104dSAndroid Build Coastguard Worker# elfutils is distributed in the hope that it will be useful, but
11*7304104dSAndroid Build Coastguard Worker# WITHOUT ANY WARRANTY; without even the implied warranty of
12*7304104dSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*7304104dSAndroid Build Coastguard Worker# GNU General Public License for more details.
14*7304104dSAndroid Build Coastguard Worker#
15*7304104dSAndroid Build Coastguard Worker# You should have received a copy of the GNU General Public License
16*7304104dSAndroid Build Coastguard Worker# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17*7304104dSAndroid Build Coastguard Worker
18*7304104dSAndroid Build Coastguard Worker. $srcdir/test-subr.sh
19*7304104dSAndroid Build Coastguard Worker
20*7304104dSAndroid Build Coastguard Workertestfiles testfile testfile2
21*7304104dSAndroid Build Coastguard Worker
22*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/dwfllines -e testfile <<\EOF
23*7304104dSAndroid Build Coastguard Workermod:  CU: [b] m.c
24*7304104dSAndroid Build Coastguard Worker0 0x804842c /home/drepper/gnu/new-bu/build/ttt/m.c:5:0
25*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
26*7304104dSAndroid Build Coastguard Worker1 0x8048432 /home/drepper/gnu/new-bu/build/ttt/m.c:6:0
27*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
28*7304104dSAndroid Build Coastguard Worker2 0x804844d /home/drepper/gnu/new-bu/build/ttt/m.c:7:0
29*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
30*7304104dSAndroid Build Coastguard Worker3 0x8048458 /home/drepper/gnu/new-bu/build/ttt/m.c:8:0
31*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
32*7304104dSAndroid Build Coastguard Worker4 0x804845a /home/drepper/gnu/new-bu/build/ttt/m.c:8:0
33*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
34*7304104dSAndroid Build Coastguard Workermod:  CU: [ca] b.c
35*7304104dSAndroid Build Coastguard Worker0 0x804845c /home/drepper/gnu/new-bu/build/ttt/b.c:4:0
36*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
37*7304104dSAndroid Build Coastguard Worker1 0x804845f /home/drepper/gnu/new-bu/build/ttt/b.c:5:0
38*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
39*7304104dSAndroid Build Coastguard Worker2 0x8048464 /home/drepper/gnu/new-bu/build/ttt/b.c:6:0
40*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
41*7304104dSAndroid Build Coastguard Worker3 0x8048466 /home/drepper/gnu/new-bu/build/ttt/b.c:6:0
42*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
43*7304104dSAndroid Build Coastguard Workermod:  CU: [15fc] f.c
44*7304104dSAndroid Build Coastguard Worker0 0x8048468 /home/drepper/gnu/new-bu/build/ttt/f.c:3:0
45*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
46*7304104dSAndroid Build Coastguard Worker1 0x804846b /home/drepper/gnu/new-bu/build/ttt/f.c:4:0
47*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
48*7304104dSAndroid Build Coastguard Worker2 0x8048470 /home/drepper/gnu/new-bu/build/ttt/f.c:5:0
49*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
50*7304104dSAndroid Build Coastguard Worker3 0x8048472 /home/drepper/gnu/new-bu/build/ttt/f.c:5:0
51*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
52*7304104dSAndroid Build Coastguard WorkerEOF
53*7304104dSAndroid Build Coastguard Worker
54*7304104dSAndroid Build Coastguard Workertestrun_compare ${abs_builddir}/dwfllines -e testfile2 <<\EOF
55*7304104dSAndroid Build Coastguard Workermod:  CU: [b] b.c
56*7304104dSAndroid Build Coastguard Worker0 0x10000470 /shoggoth/drepper/b.c:4:0
57*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
58*7304104dSAndroid Build Coastguard Worker1 0x1000047c /shoggoth/drepper/b.c:5:0
59*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
60*7304104dSAndroid Build Coastguard Worker2 0x10000480 /shoggoth/drepper/b.c:6:0
61*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
62*7304104dSAndroid Build Coastguard Worker3 0x10000490 /shoggoth/drepper/b.c:6:0
63*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
64*7304104dSAndroid Build Coastguard Workermod:  CU: [97d] f.c
65*7304104dSAndroid Build Coastguard Worker0 0x10000490 /shoggoth/drepper/f.c:3:0
66*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
67*7304104dSAndroid Build Coastguard Worker1 0x1000049c /shoggoth/drepper/f.c:4:0
68*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
69*7304104dSAndroid Build Coastguard Worker2 0x100004a0 /shoggoth/drepper/f.c:5:0
70*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
71*7304104dSAndroid Build Coastguard Worker3 0x100004b0 /shoggoth/drepper/f.c:5:0
72*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
73*7304104dSAndroid Build Coastguard Workermod:  CU: [9e4] m.c
74*7304104dSAndroid Build Coastguard Worker0 0x100004b0 /shoggoth/drepper/m.c:5:0
75*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
76*7304104dSAndroid Build Coastguard Worker1 0x100004cc /shoggoth/drepper/m.c:6:0
77*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
78*7304104dSAndroid Build Coastguard Worker2 0x100004e8 /shoggoth/drepper/m.c:7:0
79*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
80*7304104dSAndroid Build Coastguard Worker3 0x100004f4 /shoggoth/drepper/m.c:8:0
81*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
82*7304104dSAndroid Build Coastguard Worker4 0x10000514 /shoggoth/drepper/m.c:8:0
83*7304104dSAndroid Build Coastguard Worker time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
84*7304104dSAndroid Build Coastguard WorkerEOF
85*7304104dSAndroid Build Coastguard Worker
86*7304104dSAndroid Build Coastguard Workertestrun_on_self_quiet ${abs_builddir}/dwfllines -e
87*7304104dSAndroid Build Coastguard Worker
88*7304104dSAndroid Build Coastguard Workerexit 0
89