8d57ebc5c7
Resolves: RHELMISC-7595 Signed-off-by: Boyang Xue <bxue@redhat.com>
80 lines
3.1 KiB
Makefile
80 lines
3.1 KiB
Makefile
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# Makefile of /kernel/filesystems/fuse/gating/fuse3
|
|
#
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
#
|
|
# 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 fuse3
|
|
|
|
# The name of the test.
|
|
export TEST=/kernel/filesystems/fuse/gating/fuse3
|
|
|
|
# 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 config
|
|
|
|
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: 2h" >> $(METADATA)
|
|
@echo "RunFor: fuse3" >> $(METADATA)
|
|
@echo "Type: Regression" >> $(METADATA)
|
|
@echo "Requires: fuse3" >> $(METADATA)
|
|
@echo "Requires: fuse3-devel" >> $(METADATA)
|
|
@echo "Requires: fuse3-libs" >> $(METADATA)
|
|
@echo "Requires: rpm-build" >> $(METADATA)
|
|
@echo "Requires: gcc" >> $(METADATA)
|
|
@echo "Requires: gcc-c++" >> $(METADATA)
|
|
@echo "Requires: autoconf" >> $(METADATA)
|
|
@echo "Requires: automake" >> $(METADATA)
|
|
@echo "Requires: gettext-devel" >> $(METADATA)
|
|
@echo "Requires: libselinux-devel" >> $(METADATA)
|
|
@echo "Requires: libtool" >> $(METADATA)
|
|
@echo "Requires: meson" >> $(METADATA)
|
|
@echo "Requires: ninja-build" >> $(METADATA)
|
|
@echo "Requires: yum-utils" >> $(METADATA)
|
|
@echo "Requires: redhat-lsb-core" >> $(METADATA)
|
|
@echo "Requires: python3-pip" >> $(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.
|