Blame tests/run-find-prologues.sh

Packit 032894
#! /bin/sh
Packit 032894
# Copyright (C) 2005 Red Hat, Inc.
Packit 032894
# This file is part of elfutils.
Packit 032894
#
Packit 032894
# This file is free software; you can redistribute it and/or modify
Packit 032894
# it under the terms of the GNU General Public License as published by
Packit 032894
# the Free Software Foundation; either version 3 of the License, or
Packit 032894
# (at your option) any later version.
Packit 032894
#
Packit 032894
# elfutils is distributed in the hope that it will be useful, but
Packit 032894
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 032894
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 032894
# GNU General Public License for more details.
Packit 032894
#
Packit 032894
# You should have received a copy of the GNU General Public License
Packit 032894
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 032894
Packit 032894
. $srcdir/test-subr.sh
Packit 032894
Packit 032894
testfiles testfile testfile11 testfile22 testfile24 \
Packit 032894
	  testfile25 testfile3 testfile4 testfile5 testfile6
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile <<\EOF
Packit 032894
main             0x000000000804842c 0x0000000008048432
Packit 032894
bar              0x000000000804845c 0x000000000804845f
Packit 032894
foo              0x0000000008048468 0x000000000804846b
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile11 <<\EOF
Packit 032894
main             0x00000000080489b8 0x00000000080489cd
Packit 032894
gnu_obj_2        0x0000000008048c9e 0x0000000008048ca4
Packit 032894
gnu_obj_3        0x0000000008048cd8 0x0000000008048cde
Packit 032894
gnu_obj_2        0x0000000008048cf4 0x0000000008048cfa
Packit 032894
~invalid_argument 0x0000000008048d2e 0x0000000008048d34
Packit 032894
gnu_obj_1        0x0000000008048d62 0x0000000008048d65
Packit 032894
gnu_obj_1        0x0000000008048d8a 0x0000000008048d8d
Packit 032894
~invalid_argument 0x0000000008048db2 0x0000000008048db8
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile22 <<\EOF
Packit 032894
function         0x0000000008048348 0x000000000804834e
Packit 032894
main             0x000000000804835b 0x0000000008048377
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile24 <<\EOF
Packit 032894
incr             0x0000000008048348 0x000000000804834e
Packit 032894
main             0x0000000008048354 0x0000000008048360
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile25 <<\EOF
Packit 032894
incr             0x0000000008048348 0x000000000804834c
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile3 <<\EOF
Packit 032894
main             0x000000000804842c 0x0000000008048433
Packit 032894
bar              0x0000000008048458 0x000000000804845b
Packit 032894
foo              0x0000000008048464 0x0000000008048467
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile4 <<\EOF
Packit 032894
get              0x00000000080493fc 0x0000000008049402
Packit 032894
main             0x0000000008049498 0x000000000804949e
Packit 032894
a                0x000000000804d85c 0x000000000804d85c
Packit 032894
__tfPCc          0x000000000804d86c 0x000000000804d872
Packit 032894
__tfCc           0x000000000804d8a4 0x000000000804d8a4
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile5 <<\EOF
Packit 032894
bar              0x000000000804842c 0x000000000804842f
Packit 032894
foo              0x0000000008048438 0x000000000804843b
Packit 032894
main             0x0000000008048444 0x000000000804844a
Packit 032894
EOF
Packit 032894
Packit 032894
testrun_compare ${abs_builddir}/find-prologues -e testfile6 <<\EOF
Packit 032894
main             0x00000000080489b8 0x00000000080489cd
Packit 032894
gnu_obj_2        0x0000000008048c9e 0x0000000008048ca4
Packit 032894
gnu_obj_3        0x0000000008048cd8 0x0000000008048cde
Packit 032894
gnu_obj_2        0x0000000008048cf4 0x0000000008048cfa
Packit 032894
~invalid_argument 0x0000000008048d2e 0x0000000008048d34
Packit 032894
gnu_obj_1        0x0000000008048d62 0x0000000008048d65
Packit 032894
gnu_obj_1        0x0000000008048d8a 0x0000000008048d8d
Packit 032894
~invalid_argument 0x0000000008048db2 0x0000000008048db8
Packit 032894
EOF
Packit 032894
Packit 032894
exit 0