Blame Sanity/oscap-builds-ssg/Makefile

445a9a4
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
445a9a4
#
445a9a4
#   Makefile of /tools/openscap/Sanity/oscap-builds-ssg
445a9a4
#   Description: Checks that scap-security-guide can be built by the tested oscap.
445a9a4
#   Author: Matej Tyc <matyc@redhat.com>
445a9a4
#
445a9a4
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
445a9a4
#
445a9a4
#   Copyright (c) 2018 Red Hat, Inc.
445a9a4
#
445a9a4
#   This program is free software: you can redistribute it and/or
445a9a4
#   modify it under the terms of the GNU General Public License as
445a9a4
#   published by the Free Software Foundation, either version 2 of
445a9a4
#   the License, or (at your option) any later version.
445a9a4
#
445a9a4
#   This program is distributed in the hope that it will be
445a9a4
#   useful, but WITHOUT ANY WARRANTY; without even the implied
445a9a4
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
445a9a4
#   PURPOSE.  See the GNU General Public License for more details.
445a9a4
#
445a9a4
#   You should have received a copy of the GNU General Public License
445a9a4
#   along with this program. If not, see http://www.gnu.org/licenses/.
445a9a4
#
445a9a4
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
445a9a4
445a9a4
export TEST=/tools/openscap/Sanity/oscap-builds-ssg
445a9a4
export TESTVERSION=1.0
445a9a4
445a9a4
BUILT_FILES=
445a9a4
445a9a4
FILES=$(METADATA) runtest.sh Makefile PURPOSE
445a9a4
445a9a4
.PHONY: all install download clean
445a9a4
445a9a4
run: $(FILES) build
445a9a4
	./runtest.sh
445a9a4
445a9a4
build: $(BUILT_FILES)
445a9a4
	test -x runtest.sh || chmod a+x runtest.sh
445a9a4
445a9a4
clean:
445a9a4
	rm -f *~ $(BUILT_FILES)
445a9a4
445a9a4
445a9a4
include /usr/share/rhts/lib/rhts-make.include
445a9a4
445a9a4
$(METADATA): Makefile
445a9a4
	@echo "Owner:           Matej Tyc <matyc@redhat.com>" > $(METADATA)
445a9a4
	@echo "Name:            $(TEST)" >> $(METADATA)
445a9a4
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
445a9a4
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
445a9a4
	@echo "Description:     Checks that scap-security-guide can be built by the tested oscap." >> $(METADATA)
445a9a4
	@echo "Type:            Sanity" >> $(METADATA)
445a9a4
	@echo "TestTime:        40m" >> $(METADATA)
445a9a4
	@echo "RunFor:          openscap" >> $(METADATA)
c52a5d7
	@echo "Requires:        openscap cmake make openscap-utils python3-pyyaml python3-jinja2 git" >> $(METADATA)
445a9a4
	@echo "Priority:        Normal" >> $(METADATA)
445a9a4
	@echo "License:         GPLv2+" >> $(METADATA)
445a9a4
	@echo "Confidential:    no" >> $(METADATA)
445a9a4
	@echo "Destructive:     no" >> $(METADATA)
ed19e9f
	@echo "Releases:        Fedora" >> $(METADATA)
445a9a4
445a9a4
	rhts-lint $(METADATA)