gating: fix rpm-tmt-test failure by adding public gating test
Signed-off-by: Boyang Xue <bxue@redhat.com>
This commit is contained in:
parent
ef5f2ff720
commit
ccd906e78b
@ -5,4 +5,4 @@ product_versions:
|
|||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/internal.functional}
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/internal.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/public.functional}
|
||||||
|
@ -5,6 +5,7 @@ adjust:
|
|||||||
enabled: true
|
enabled: true
|
||||||
because: private tests are accesible only within rhel pipline
|
because: private tests are accesible only within rhel pipline
|
||||||
discover:
|
discover:
|
||||||
|
- name: rhel-fuse3
|
||||||
how: fmf
|
how: fmf
|
||||||
url: https://gitlab.cee.redhat.com/kernel-qe/kernel.git
|
url: https://gitlab.cee.redhat.com/kernel-qe/kernel.git
|
||||||
test: [
|
test: [
|
||||||
|
8
plans/public.fmf
Normal file
8
plans/public.fmf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
summary: Public fuse3 gating test
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
test: [
|
||||||
|
"fuse3-sanity-test",
|
||||||
|
]
|
60
tests/fuse3-sanity-test/Makefile
Normal file
60
tests/fuse3-sanity-test/Makefile
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of fuse3-sanity-test
|
||||||
|
# Description: fuse3-sanity-test
|
||||||
|
# Author: Boyang Xue <bxue@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 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/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/kernel/filesystems/fuse/gating/fuse3
|
||||||
|
export TESTVERSION=0.1
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
test -x runtest.sh || chmod a+x runtest.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Boyang Xue <bxue@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: fuse3-sanity-test" >> $(METADATA)
|
||||||
|
@echo "Type: Regression" >> $(METADATA)
|
||||||
|
@echo "TestTime: 15m" >> $(METADATA)
|
||||||
|
@echo "RunFor: fuse3" >> $(METADATA)
|
||||||
|
@echo "Requires: fuse3-libs" >> $(METADATA)
|
||||||
|
@echo "Requires: fuse3-devel" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
5
tests/fuse3-sanity-test/PURPOSE
Normal file
5
tests/fuse3-sanity-test/PURPOSE
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
PURPOSE of fuse3-sanity-test
|
||||||
|
Description: fuse3-sanity-test
|
||||||
|
Author: Boyang Xue <bxue@redhat.com>
|
||||||
|
|
||||||
|
Note:
|
14
tests/fuse3-sanity-test/main.fmf
Normal file
14
tests/fuse3-sanity-test/main.fmf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
summary: fuse3-sanity-test
|
||||||
|
description: |
|
||||||
|
Note:
|
||||||
|
contact: Boyang Xue <bxue@redhat.com>
|
||||||
|
component:
|
||||||
|
- fuse3
|
||||||
|
test: ./runtest.sh
|
||||||
|
framework: beakerlib
|
||||||
|
recommend:
|
||||||
|
- fuse3-libs
|
||||||
|
- fuse3-devel
|
||||||
|
duration: 15m
|
||||||
|
extra-summary: /kernel/filesystems/fuse/gating/fuse3
|
||||||
|
extra-task: /kernel/filesystems/fuse/gating/fuse3
|
43
tests/fuse3-sanity-test/runtest.sh
Executable file
43
tests/fuse3-sanity-test/runtest.sh
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of fuse3-sanity-test
|
||||||
|
# Description: fuse3-sanity-test
|
||||||
|
# Author: Boyang Xue <bxue@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 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
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup Setup
|
||||||
|
if ! rlCheckRpm fuse3 fuse3-libs fuse3-devel; then
|
||||||
|
rlRun "yum install -y fuse3 fuse3-libs fuse3-devel"
|
||||||
|
rlAssertRpm fuse3 fuse3-libs fuse3-devel
|
||||||
|
fi
|
||||||
|
rlPhaseEnd
|
||||||
|
rlPhaseStartTest Test
|
||||||
|
rlRun "fusermount3 --version"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalEnd
|
Loading…
Reference in New Issue
Block a user