Sync the latest c10s gating tests to c9s
Resolves: RHELMISC-7595 Signed-off-by: Boyang Xue <bxue@redhat.com>
This commit is contained in:
parent
5ade2f28d7
commit
8a1e37bf38
@ -3,5 +3,5 @@ product_versions:
|
|||||||
- rhel-9
|
- rhel-9
|
||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/internal.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/public.functional}
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
summary: fuse3 gating test
|
summary: Private (RHEL) fuse3 gating test
|
||||||
|
enabled: false
|
||||||
|
adjust:
|
||||||
|
- when: distro == rhel
|
||||||
|
enabled: true
|
||||||
|
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:
|
12
tests/fuse3-sanity-test/main.fmf
Normal file
12
tests/fuse3-sanity-test/main.fmf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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
|
37
tests/fuse3-sanity-test/runtest.sh
Executable file
37
tests/fuse3-sanity-test/runtest.sh
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/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
|
||||||
|
rlPhaseStartTest Test
|
||||||
|
rlRun "fusermount3 --version"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalEnd
|
Loading…
Reference in New Issue
Block a user