CI Tests: Update Regression/GNU-Attribute-notes-not-recognized
This commit is contained in:
parent
c468385a0e
commit
ad7295b997
|
@ -54,7 +54,7 @@ $(METADATA): Makefile
|
||||||
@echo "TestTime: 48h" >> $(METADATA)
|
@echo "TestTime: 48h" >> $(METADATA)
|
||||||
@echo "RunFor: elfutils" >> $(METADATA)
|
@echo "RunFor: elfutils" >> $(METADATA)
|
||||||
@echo "Requires: elfutils" >> $(METADATA)
|
@echo "Requires: elfutils" >> $(METADATA)
|
||||||
@echo "Requires: bash" >> $(METADATA)
|
@echo "Requires: bash bash-debuginfo" >> $(METADATA)
|
||||||
@echo "Priority: Normal" >> $(METADATA)
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
@echo "License: GPLv2+" >> $(METADATA)
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
@echo "Confidential: no" >> $(METADATA)
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
|
|
@ -2,15 +2,15 @@ summary: GNU-Attribute-notes-not-recognized
|
||||||
description: |
|
description: |
|
||||||
Bug summary: elfutils doesn't recognize GNU Attribute notes
|
Bug summary: elfutils doesn't recognize GNU Attribute notes
|
||||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1650125
|
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1650125
|
||||||
contact:
|
contact: Martin Cermak <mcermak@redhat.com>
|
||||||
- Martin Cermak <mcermak@redhat.com>
|
|
||||||
component:
|
component:
|
||||||
- elfutils
|
- elfutils
|
||||||
test: ./runtest.sh
|
test: ./runtest.sh
|
||||||
framework: beakerlib
|
framework: beakerlib
|
||||||
recommend:
|
recommend:
|
||||||
- elfutils
|
- elfutils
|
||||||
- bash
|
- bash
|
||||||
|
- bash-debuginfo
|
||||||
duration: 48h
|
duration: 48h
|
||||||
extra-summary: /tools/elfutils/Regression/GNU-Attribute-notes-not-recognized
|
extra-summary: /tools/elfutils/Regression/GNU-Attribute-notes-not-recognized
|
||||||
extra-task: /tools/elfutils/Regression/GNU-Attribute-notes-not-recognized
|
extra-task: /tools/elfutils/Regression/GNU-Attribute-notes-not-recognized
|
||||||
|
|
|
@ -32,12 +32,35 @@ PACKAGE="elfutils"
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartTest
|
rlPhaseStartTest
|
||||||
# Rely on that /bin/bash is annobin-annotated per
|
# Rely on that /bin/bash is annobin-annotated per
|
||||||
# - https://fedoraproject.org/wiki/Toolchain/Watermark
|
# - https://fedoraproject.org/wiki/Toolchain/Watermark
|
||||||
# - https://fedoraproject.org/wiki/Changes/Annobin
|
# - https://fedoraproject.org/wiki/Changes/Annobin
|
||||||
# Seems to work fine with bash-4.4.19-6.el8 and elfutils-0.174-5.el8.
|
# Seems to work fine with bash-4.4.19-6.el8 and elfutils-0.174-5.el8.
|
||||||
set -o pipefail
|
f="/bin/bash"
|
||||||
rlRun "eu-readelf -n /bin/bash | grep -2 '^ GA' | fgrep 'GNU Build Attribute' | tail -50"
|
|
||||||
|
# Annobin notes originally used to reside in the binary itself.
|
||||||
|
# Later on they moved to debuginfo.
|
||||||
|
# Let's see if we can chase down needed debuginfo somewhere...
|
||||||
|
|
||||||
|
# Attempt getting the needed file using debuginfod
|
||||||
|
export DEBUGINFOD_URLS=http://debuginfod.usersys.redhat.com:3632/
|
||||||
|
rlRun "f=\"$f $(debuginfod-find debuginfo /bin/bash)\""
|
||||||
|
|
||||||
|
# Attempt getting the needed file by traditional means
|
||||||
|
rlRun "debuginfo-install -y bash"
|
||||||
|
rlRun "buildid=$(eu-readelf -n /bin/bash | awk '/Build ID:/ {print $NF}')"
|
||||||
|
for i in $(rpm -ql bash-debuginfo); do
|
||||||
|
test -f $i || continue
|
||||||
|
if eu-readelf -n $i | fgrep $buildid; then
|
||||||
|
rlRun "f=\"$f $i\""
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
export f
|
||||||
|
# Check if eu-readelf can read the notes from at least one of files
|
||||||
|
# that can possibly contain it...
|
||||||
|
rlRun "(for i in $f; do eu-readelf -n $i; done ) | grep -2 '^ GA' | fgrep 'GNU Build Attribute' | tail -50"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
rlJournalPrintText
|
rlJournalPrintText
|
||||||
rlJournalEnd
|
rlJournalEnd
|
||||||
|
|
Loading…
Reference in New Issue