Mark Wielaard | f339da9 | 2017-03-30 12:19:53 +0200 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Copyright (C) 2017 Red Hat, Inc. |
| 3 | # This file is part of elfutils. |
| 4 | # |
| 5 | # This file is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 3 of the License, or |
| 8 | # (at your option) any later version. |
| 9 | # |
| 10 | # elfutils is distributed in the hope that it will be useful, but |
| 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | . $srcdir/test-subr.sh |
| 19 | |
| 20 | # See run-aggregate-size.sh for how to generate testfiles. |
| 21 | |
| 22 | testfiles testfile-sizes1.o testfile-sizes2.o testfile-sizes3.o |
| 23 | |
| 24 | testrun_compare ${abs_builddir}/peel_type -e testfile-sizes1.o <<\EOF |
| 25 | c raw type base_type |
| 26 | i raw type base_type |
| 27 | l raw type base_type |
| 28 | v raw type pointer_type |
| 29 | s raw type structure_type |
| 30 | ca raw type array_type |
| 31 | ia raw type array_type |
| 32 | va raw type array_type |
| 33 | sa raw type array_type |
| 34 | EOF |
| 35 | |
| 36 | testrun_compare ${abs_builddir}/peel_type -e testfile-sizes2.o <<\EOF |
| 37 | c raw type base_type |
| 38 | i raw type base_type |
| 39 | l raw type base_type |
| 40 | v raw type pointer_type |
| 41 | s raw type structure_type |
| 42 | ca raw type array_type |
| 43 | ia raw type array_type |
| 44 | va raw type array_type |
| 45 | sa raw type array_type |
| 46 | EOF |
| 47 | |
| 48 | testrun_compare ${abs_builddir}/peel_type -e testfile-sizes3.o <<\EOF |
| 49 | c raw type base_type |
| 50 | i raw type base_type |
| 51 | l raw type base_type |
| 52 | v raw type pointer_type |
| 53 | s raw type structure_type |
| 54 | ca raw type array_type |
| 55 | ia raw type array_type |
| 56 | va raw type array_type |
| 57 | sa raw type array_type |
Dima Kogan | a2246aa | 2017-12-08 01:45:10 -0800 | [diff] [blame] | 58 | d3d raw type array_type |
Mark Wielaard | f339da9 | 2017-03-30 12:19:53 +0200 | [diff] [blame] | 59 | f raw type base_type |
| 60 | b raw type base_type |
| 61 | EOF |
| 62 | |
| 63 | exit 0 |