Test RHEL-79264
This commit is contained in:
parent
646537d33e
commit
dd5d0dff6b
2 changed files with 82 additions and 0 deletions
34
Regression/RHEL-79264_stack-prot_fails_bootconfig/main.fmf
Normal file
34
Regression/RHEL-79264_stack-prot_fails_bootconfig/main.fmf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
summary: bootconfig was not at fault
|
||||
contact: Vaclav Kadlcik <vkadlcik@redhat.com>
|
||||
component:
|
||||
- annobin
|
||||
test: ${WITH_SCL:-bash} ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- kernel-tools
|
||||
recommend:
|
||||
- annobin-annocheck
|
||||
- kernel-tools-debuginfo
|
||||
- dnf-utils
|
||||
- yum-utils
|
||||
duration: 20m
|
||||
enabled: true
|
||||
tag:
|
||||
- CI-Tier-1
|
||||
tier: '1'
|
||||
link:
|
||||
- relates: https://issues.redhat.com/browse/RHEL-79264
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: collection is not defined and distro == rhel-9 and distro ~< rhel-9.6
|
||||
continue: false
|
||||
- enabled: false
|
||||
when: collection is not defined and distro < rhel-9
|
||||
continue: false
|
||||
- enabled: false
|
||||
when: collection == devtoolset-13, gcc-toolset-13, gcc-toolset-14
|
||||
continue: false
|
||||
extra-summary: /tools/annobin/Regression/RHEL-79264_stack-prot_fails_bootconfig
|
||||
extra-task: /tools/annobin/Regression/RHEL-79264_stack-prot_fails_bootconfig
|
||||
# extra-nitrate: TODO
|
||||
# id: TODO
|
||||
48
Regression/RHEL-79264_stack-prot_fails_bootconfig/runtest.sh
Executable file
48
Regression/RHEL-79264_stack-prot_fails_bootconfig/runtest.sh
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
#!/usr/bin/env bash
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
ANNOCHECK="${ANNOCHECK:-$(type -P annocheck)}"
|
||||
ANNOCHECK_RPM_NAME=$(rpm --qf '%{name}' -qf "$ANNOCHECK")
|
||||
|
||||
PACKAGES="$ANNOCHECK_RPM_NAME kernel-tools"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlLogInfo "PACKAGES=$PACKAGES"
|
||||
rlLogInfo "COLLECTIONS=$COLLECTIONS"
|
||||
rlLogInfo "ANNOCHECK=$ANNOCHECK"
|
||||
rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"
|
||||
|
||||
# We optionally need to skip checking for the presence of the metapackage
|
||||
# because that would pull in all the dependent toolset subrpms. We do not
|
||||
# always want that, especially in CI.
|
||||
_COLLECTIONS="$COLLECTIONS"
|
||||
if ! test -z "$SKIP_COLLECTION_METAPACKAGE_CHECK"; then
|
||||
for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do
|
||||
rlLogInfo "ignoring metapackage check for collection $c"
|
||||
export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})
|
||||
done
|
||||
fi
|
||||
rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"
|
||||
rlAssertRpm --all
|
||||
export COLLECTIONS="$_COLLECTIONS"
|
||||
|
||||
if ! rpm -q kernel-tools-debuginfo &>/dev/null; then
|
||||
rlRun 'debuginfo-install -y kernel-tools'
|
||||
fi
|
||||
|
||||
rlRun "TmpDir=\$(mktemp -d)"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun 'annocheck --verbose --ignore-unknown --ignore-links --skip-all --test-stack-prot /usr/bin/bootconfig &>annocheck.out'
|
||||
rlGetPhaseState || rlFileSubmit annocheck.out annocheck.out
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun popd
|
||||
rlRun "rm -r $TmpDir"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue