From 5e4c738a8f7b9fce79a1854b93349fdf28c860a7 Mon Sep 17 00:00:00 2001 From: Martin Cermak Date: Fri, 20 Aug 2021 15:25:33 +0200 Subject: [PATCH] CI Gating: Test cover bz1991931 --- .../main | Bin 0 -> 27456 bytes .../main.fmf | 16 +++++++ .../runtest.sh | 40 ++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 tests/Regression/missing-check-for-x86-property-note-content/main create mode 100644 tests/Regression/missing-check-for-x86-property-note-content/main.fmf create mode 100755 tests/Regression/missing-check-for-x86-property-note-content/runtest.sh diff --git a/tests/Regression/missing-check-for-x86-property-note-content/main b/tests/Regression/missing-check-for-x86-property-note-content/main new file mode 100644 index 0000000000000000000000000000000000000000..b7f4983a4a9958c8cf33bb1a902848845794ec82 GIT binary patch literal 27456 zcmeHQeQX@X6`#BF#STtvCn1mzz#E!CNVxMy9OFQo*oi;xf}NPe5sp;4S>NrQ7w-1l zyS?C~QJX4I5g{a6RrCv~AF4$Epa`k`BP#zGQ6Z>=1nobmDz#|^YEVm?LYsyn<@(<2 zd*|J~JrYnu)3PJqzM0>=_h$CZ$L-F%8-HndY$O~C2@VmlLttv6%|-?&V_u^OkO9#r zmcsQmu|X_?bc4j~`~jOlt{u*V-L#4D2vC$;g%KZmlMM@|TtlQNS1+88+Br-G-3Q9a zEJ`!ZG)V<8WxQIRLM3|WHwk9yltbG*AF~;r?|0KFvddwjEQd*ydxhj)Avvb!sh&*P zo@f*N^pQQiRDnDUio6Qpm75|tFC8L&rdS4s18-UBk5k?R$u%fajquX-HY}KOdG~=F z+T}_EH}iffuUJ*kfc3&MuuqNd zJt)E_#5`gwkMZl_gJ#A23$Oig#nQ1me>)%D@Z2vNAKCKG$`{^c9Vml57?7X41g0^M zKbXGKfOT8$!@L_X#RpgG;AR~h>vXG+9-*qKIZe$Nrj|2~>5v3Nrqq(96)iQd8K%HA z+Ob!RjwN^PR=eZf@vYVPmL8!dC&$&aUevQj$=0NL>&yM3yvA6J*1nUlpMLcz=w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|uy z35cLgS)SK@na&dh;yXi*AWYd#D38DK^2&c7FtiEl$43wui1P2+2$gl^ zIMS!#tcTu}7ZQubHy13G;jVFRnLY{j1NE3ULzk z@^hN$3&4)@+NT5pFs<%jfm~(;YT{!Y0)#%QIc%krxBR+G$hfV+B~2Gb{lBdAR=keBE?~^2?}v zVy~)Zc{o7V6}Wt+Yaqh5LB_VjHhUi_d=~e69l_iGI;ngIi;TXRv=MK;xLoGnSx5f* zJvIlZmV`LA3?UMG3)eICEp7W|<{IVYLU){$4n zZTXFL%4hi#B=2Dp36jS-+ZkAnF--H^!x+-TB!7k+@o*k`3O?MQ`Fmk8VBB{hS`B@2 dVIR(D_9*w3k1i5^@|zFas_={}XYeG&zX9yy#l`>t literal 0 HcmV?d00001 diff --git a/tests/Regression/missing-check-for-x86-property-note-content/main.fmf b/tests/Regression/missing-check-for-x86-property-note-content/main.fmf new file mode 100644 index 0000000..a7afb11 --- /dev/null +++ b/tests/Regression/missing-check-for-x86-property-note-content/main.fmf @@ -0,0 +1,16 @@ +summary: missing-check-for-x86-property-note-content +description: | + Bug summary: annobin: Missing check for contents of x86 property note + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1991931 +contact: Martin Cermak +component: +- annobin +test: ./runtest.sh +framework: beakerlib +recommend: +- annobin +duration: 48h +link: +- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1991931 +extra-summary: /tools/annobin/Regression/missing-check-for-x86-property-note-content +extra-task: /tools/annobin/Regression/missing-check-for-x86-property-note-content diff --git a/tests/Regression/missing-check-for-x86-property-note-content/runtest.sh b/tests/Regression/missing-check-for-x86-property-note-content/runtest.sh new file mode 100755 index 0000000..14392c0 --- /dev/null +++ b/tests/Regression/missing-check-for-x86-property-note-content/runtest.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /tools/annobin/Regression/missing-check-for-x86-property-note-content +# Description: missing-check-for-x86-property-note-content +# Author: Martin Cermak +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2021 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="annobin" + +rlJournalStart + rlPhaseStartTest + rlRun "annocheck main" 1 + rlRun "annocheck --fixed-format-messages main | \ + grep '^Hardened: FAIL: test: cf-protection file: main.$'" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd