fuse/tests/fuse-sanity-test/Makefile
Boyang Xue dffdbb4acc gating: sync with the gating test for c10s
Resolves: RHEL-69609

Signed-off-by: Boyang Xue <bxue@redhat.com>
2024-12-02 18:55:08 +08:00

71 lines
2.6 KiB
Makefile

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /kernel/filesystems/fuse/gating/fuse2
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2022 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# 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, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Author and description of the test
AUTHOR=Zorro Lang <zlang@redhat.com>
DESCRIPTION=The gating test case of fuse-2.x
# The name of the test.
export TEST=/kernel/filesystems/fuse/gating/fuse2
# Version of the test. Used with make tag.
export TESTVERSION=1.0
# data files, .c files, scripts anything needed to either compile the test and/or run it.
FILES=$(METADATA) runtest.sh PURPOSE fusexmp_fh.c fusetest.c
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES) $(FILES)
chmod a+x ./runtest.sh
clean:
rm -f *~
# Include Common Makefile
include /usr/share/rhts/lib/rhts-make.include
# Generate the testinfo.desc here:
$(METADATA): Makefile
@echo "Owner: $(AUTHOR)" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Description: $(DESCRIPTION)" >> $(METADATA)
@echo "TestTime: 12h" >> $(METADATA)
@echo "RunFor: fuse" >> $(METADATA)
@echo "Type: Regression" >> $(METADATA)
@echo "Requires: fuse" >> $(METADATA)
@echo "Requires: fuse-devel" >> $(METADATA)
@echo "Requires: fuse-libs" >> $(METADATA)
@echo "Requires: pkgconf-pkg-config" >> $(METADATA)
@echo "Requires: gcc" >> $(METADATA)
@echo "Requires: glibc-headers" >> $(METADATA)
@echo "Requires: procps-ng" >> $(METADATA)
rhts-lint $(METADATA)
# The include package trys to install all the potential dependencies.
# Not each them are available on all RHEL old/new systems.