Adding new test

This commit is contained in:
Ondrej Mejzlik 2023-06-06 10:30:20 +02:00
commit 6417cdbcf2
2 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,34 @@
summary: Test for BZ#1665177 (annocheck failure on ncurses ppc64le)
description: |
Bug summary: annocheck failure on ncurses ppc64le
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1665177
contact: Robin Hack <rhack@redhat.com>
component:
- ncurses
test: ./runtest.sh
framework: beakerlib
recommend:
- ncurses
- gdb
- ncurses-debuginfo
duration: 20m
enabled: true
tag:
- NoRHEL4
- NoRHEL5
- TIPfail_infra
- TIPfail_samba
- TIPfail_systemd
- TIPpass
- Tier2
tier: '2'
link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1665177
adjust:
- enabled: false
when: distro == rhel-4, rhel-5
continue: false
extra-nitrate: TC#0590923
extra-summary: /CoreOS/ncurses/Regression/missing-debuginfo-in-binaries
extra-task: /CoreOS/ncurses/Regression/missing-debuginfo-in-binaries
id: 94674d3e-e654-4237-874d-5541da9236cf

View file

@ -0,0 +1,52 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/ncurses/Regression/missing-debuginfo-in-binaries
# Description: Test for BZ#1665177 (annocheck failure on ncurses ppc64le)
# Author: Robin Hack <rhack@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2019 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="ncurses"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE || rlDie "Package $PACKAGE not found"
rlAssertRpm 'ncurses-debuginfo' || rlDie "Package ncurses-debuginfo not found"
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "pushd $TmpDir"
rlPhaseEnd
rlPhaseStartTest
for p in $(rpm -ql ncurses | grep '/bin/'); do
rlRun "gdb -ex 'quit' $p | grep 'no debugging symbols found'" 1
done
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd