64591e7
# Copyright (c) 2018 Red Hat, Inc.
64591e7
#
64591e7
# This program is free software: you can redistribute it and/or modify
64591e7
# it under the terms of the GNU General Public License as published by
64591e7
# the Free Software Foundation, either version 3 of the License, or
64591e7
# (at your option) any later version.
64591e7
#
64591e7
# This program is distributed in the hope that it will be useful,
64591e7
# but WITHOUT ANY WARRANTY; without even the implied warranty of
64591e7
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
64591e7
# GNU General Public License for more details.
64591e7
#
64591e7
# You should have received a copy of the GNU General Public License
64591e7
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
64591e7
#
64591e7
# Author: Boyang Xue <bxue@redhat.com>
64591e7
64591e7
TOPLEVEL_NAMESPACE=
64591e7
PACKAGE_NAME=kernel
64591e7
64591e7
export TEST=freeze-protection-bypass
64591e7
export TESTVERSION=1.0
64591e7
64591e7
BUILT_FILES=
64591e7
64591e7
FILES=$(METADATA) runtest.sh Makefile
64591e7
64591e7
.PHONY: all install download clean
64591e7
64591e7
run: $(FILES) build
64591e7
	./runtest.sh
64591e7
64591e7
build: $(BUILT_FILES)
64591e7
	chmod a+x ./runtest.sh
64591e7
64591e7
clean:
64591e7
	rm -f *~ $(BUILT_FILES)
64591e7
64591e7
include /usr/share/rhts/lib/rhts-make.include
64591e7
64591e7
$(METADATA): Makefile
64591e7
	@echo "Owner:           Boyang Xue <bxue@redhat.com>" > $(METADATA)
64591e7
	@echo "Name:            $(TEST)" >> $(METADATA)
64591e7
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
64591e7
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
64591e7
	@echo "Description:     Test for Bug - ext4: fix freeze protection bypass" >> $(METADATA)
64591e7
	@echo "Type:            Regression" >> $(METADATA)
64591e7
	@echo "TestTime:        3m" >> $(METADATA)
64591e7
	@echo "RunFor:          kernel" >> $(METADATA)
64591e7
	@echo "Requires:        " >> $(METADATA)
64591e7
	@echo "Priority:        Normal" >> $(METADATA)
64591e7
	@echo "License:         GPLv2+" >> $(METADATA)
64591e7
	@echo "Confidential:    no" >> $(METADATA)
64591e7
	@echo "Destructive:     no" >> $(METADATA)
64591e7
64591e7
	rhts-lint $(METADATA)