1# Copyright (C) 2019 Red Hat, Inc. 2# This file is part of elfutils. 3# 4# This file is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3 of the License, or 7# (at your option) any later version. 8# 9# elfutils is distributed in the hope that it will be useful, but 10# WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17. $srcdir/test-subr.sh 18 19testfiles testfileppc32 20testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc32 << EOF 21Notes in section 2: 22type: 1,1, namesz: 4,4, descsz: 16,16 23Notes in section 3: 24type: 3,3, namesz: 4,4, descsz: 20,20 25EOF 26 27testfiles testfileppc64 28testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileppc64 << EOF 29Notes in section 2: 30type: 1,1, namesz: 4,4, descsz: 16,16 31Notes in section 3: 32type: 3,3, namesz: 4,4, descsz: 20,20 33EOF 34 35testfiles testfiles390 36testrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390 << EOF 37Notes in section 2: 38type: 1,1, namesz: 4,4, descsz: 16,16 39Notes in section 3: 40type: 3,3, namesz: 4,4, descsz: 20,20 41EOF 42 43testfiles testfiles390x 44testrun_compare ${abs_top_builddir}/tests/xlate_notes testfiles390x << EOF 45Notes in section 2: 46type: 1,1, namesz: 4,4, descsz: 16,16 47Notes in section 3: 48type: 3,3, namesz: 4,4, descsz: 20,20 49EOF 50 51testfiles testfileaarch64 52testrun_compare ${abs_top_builddir}/tests/xlate_notes testfileaarch64 << EOF 53Notes in section 2: 54type: 1,1, namesz: 4,4, descsz: 16,16 55Notes in section 3: 56type: 3,3, namesz: 4,4, descsz: 20,20 57EOF 58 59testfiles testfilearm 60testrun_compare ${abs_top_builddir}/tests/xlate_notes testfilearm << EOF 61Notes in section 2: 62type: 1,1, namesz: 4,4, descsz: 16,16 63Notes in section 3: 64type: 3,3, namesz: 4,4, descsz: 20,20 65EOF 66 67testfiles testfile_gnu_props.32be.o 68testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32be.o << EOF 69Notes in section 4: 70type: 5,5, namesz: 4,4, descsz: 12,12 71type: 5,5, namesz: 4,4, descsz: 8,8 72EOF 73 74testfiles testfile_gnu_props.32le.o 75testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.32le.o << EOF 76Notes in section 4: 77type: 5,5, namesz: 4,4, descsz: 12,12 78type: 5,5, namesz: 4,4, descsz: 8,8 79EOF 80 81testfiles testfile_gnu_props.64be.o 82testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64be.o << EOF 83Notes in section 4: 84type: 5,5, namesz: 4,4, descsz: 16,16 85type: 5,5, namesz: 4,4, descsz: 8,8 86EOF 87 88testfiles testfile_gnu_props.64le.o 89testrun_compare ${abs_top_builddir}/tests/xlate_notes testfile_gnu_props.64le.o << EOF 90Notes in section 4: 91type: 5,5, namesz: 4,4, descsz: 16,16 92type: 5,5, namesz: 4,4, descsz: 8,8 93EOF 94