CI Tests: add Regression/bz2115831-glibc-missing-gnu-debuglink-section-in
This test was originally missing during the import from Fedora test plan. RPM-Changelog: - RPM-Skip-Release: yes
This commit is contained in:
parent
7e8b63eca4
commit
49fd6e779e
@ -0,0 +1,18 @@
|
||||
summary: Test for BZ#2115831 (glibc missing .gnu_debuglink section in libc.so.6,)
|
||||
description: |
|
||||
Bug summary: glibc: missing .gnu_debuglink section in libc.so.6, redundant annobin symbols and debufginfo for ld.so
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=2115831
|
||||
link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=2115831
|
||||
contact: Sergey Kolosov <skolosov@redhat.com>
|
||||
component:
|
||||
- glibc
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- elfutils
|
||||
- glibc
|
||||
- glibc-debuginfo
|
||||
duration: 20m
|
||||
extra-summary: /tools/glibc/Regression/bz2115831-glibc-missing-gnu-debuglink-section-in
|
||||
extra-task: /tools/glibc/Regression/bz2115831-glibc-missing-gnu-debuglink-section-in
|
||||
61
tests/Regression/bz2115831-glibc-missing-gnu-debuglink-section-in/runtest.sh
Executable file
61
tests/Regression/bz2115831-glibc-missing-gnu-debuglink-section-in/runtest.sh
Executable file
@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /tools/glibc/Regression/bz2115831-glibc-missing-gnu-debuglink-section-in
|
||||
# Description: Test for BZ#2115831 (glibc missing .gnu_debuglink section in libc.so.6,)
|
||||
# Author: Sergey Kolosov <skolosov@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2022 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="glibc"
|
||||
LIBC_SO_6_LIBS=$(find /usr/lib/ /usr/lib64/ -name libc.so.6)
|
||||
TESTL2="/usr/bin/ld.so"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
PACKNVR=$(rpm -q ${PACKAGE}.`arch`)
|
||||
rlRun "TESTTMPDIR=$(mktemp -d)"
|
||||
rlRun "pushd $TESTTMPDIR"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun -l "rpm -ql glibc-debuginfo"
|
||||
for LIB in $LIBC_SO_6_LIBS; do
|
||||
rlRun -l "eu-readelf -S $LIB | grep -q .debug_" 1
|
||||
rlRun -l "eu-readelf -S $LIB | grep -q .gnu_debuglink" 0
|
||||
done
|
||||
rlRun -l "eu-readelf -S $TESTL2 | grep -q .debug_" 0
|
||||
rlRun -l "eu-readelf -S $TESTL2 | grep -q .gnu_debuglink" 1
|
||||
rlRun -l "eu-readelf -s $TESTL2 | grep -q annobin" 1
|
||||
rlRun -l "rpm -ql glibc-debuginfo|sort|grep ld-linux-" 1
|
||||
rlRun -l "rpm -ql glibc-debuginfo|sort|grep libc.so.6-" 0
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TESTTMPDIR"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Reference in New Issue
Block a user