Add coverage for RHEL-50536
Backport .relro_padding entsize fix
This commit is contained in:
parent
6d5a02bb0c
commit
8b1bcc91ef
3 changed files with 36 additions and 0 deletions
Binary file not shown.
9
tests/bugs/Backport-relro_padding-entsize-fix/main.fmf
Normal file
9
tests/bugs/Backport-relro_padding-entsize-fix/main.fmf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
summary: Backport .relro_padding entsize fix
|
||||
|
||||
duration: 5m
|
||||
|
||||
require+:
|
||||
- xz
|
||||
|
||||
link+:
|
||||
- verifies: https://issues.redhat.com/browse/RHEL-50536
|
||||
27
tests/bugs/Backport-relro_padding-entsize-fix/test.sh
Executable file
27
tests/bugs/Backport-relro_padding-entsize-fix/test.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
. "$TMT_TREE/tests/lib.sh" || exit 1
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
buTestHeader
|
||||
buEnterTmpDir
|
||||
|
||||
buCopyReproducers "libclang.so.18.1.xz"
|
||||
rlRun "unxz $TmpDir/libclang.so.18.1.xz"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "objcopy $TmpDir/libclang.so.18.1 $TmpDir/libclang.so.18.1.copy"
|
||||
rlRun -s "readelf --section-headers $TmpDir/libclang.so.18.1.copy"
|
||||
rlAssertEquals "entsize has expected value" "00" "$(grep -E '.relro_padding' "$rlRun_LOG" | awk '{print $7}')"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
buExitTmpDir
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue