diff --git a/Regression/RHEL-79264_stack-prot_fails_bootconfig/main.fmf b/Regression/RHEL-79264_stack-prot_fails_bootconfig/main.fmf new file mode 100644 index 0000000..02f6170 --- /dev/null +++ b/Regression/RHEL-79264_stack-prot_fails_bootconfig/main.fmf @@ -0,0 +1,34 @@ +summary: bootconfig was not at fault +contact: Vaclav Kadlcik +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 diff --git a/Regression/RHEL-79264_stack-prot_fails_bootconfig/runtest.sh b/Regression/RHEL-79264_stack-prot_fails_bootconfig/runtest.sh new file mode 100755 index 0000000..ac9e3eb --- /dev/null +++ b/Regression/RHEL-79264_stack-prot_fails_bootconfig/runtest.sh @@ -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