882bd4d
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
882bd4d
#
882bd4d
#   Makefile of /CoreOS/acpica-tools/acpica-tools-tests/aslts
882bd4d
#
882bd4d
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
882bd4d
882bd4d
# Author, maintainer and description of the test
882bd4d
AUTHOR=Mike Gahagan <mgahagan@redhat.com>
882bd4d
DESCRIPTION=ACPICA ASL grammar validation Test Suite (ASLTS)
882bd4d
PACKAGE=acpica-tools
882bd4d
882bd4d
# The name of the test.
882bd4d
export TEST=/CoreOS/acpica-tools/acpica-tools-tests/aslts
882bd4d
882bd4d
# Version of the test. Used with make tag.
882bd4d
export TESTVERSION=1.0
882bd4d
882bd4d
882bd4d
# data files, .c files, scripts anything needed to either compile the test and/or run it.
882bd4d
FILES=$(METADATA) runtest.sh PURPOSE Makefile
882bd4d
882bd4d
run: $(FILES) build
882bd4d
	./runtest.sh
882bd4d
882bd4d
build: $(BUILT_FILES) $(FILES)
882bd4d
	chmod a+x ./runtest.sh
882bd4d
882bd4d
clean:
882bd4d
	rm -f *~ *.rpm
882bd4d
	rm -f $(METADATA)
882bd4d
882bd4d
# Include Common Makefile
882bd4d
include /usr/share/rhts/lib/rhts-make.include
882bd4d
882bd4d
# Generate the testinfo.desc here:
882bd4d
$(METADATA): Makefile
882bd4d
	@touch $(METADATA)
882bd4d
	@echo "Owner:        $(AUTHOR)"     > $(METADATA)
882bd4d
	@echo "Name:         $(TEST)"           >> $(METADATA)
882bd4d
	@echo "Path:         $(TEST_DIR)"       >> $(METADATA)
882bd4d
	@echo "License:      GPLv2"             >> $(METADATA)
882bd4d
	@echo "TestVersion:  $(TESTVERSION)"    >> $(METADATA)
882bd4d
	@echo "Description:  $(DESCRIPTION)"    >> $(METADATA)
882bd4d
	@echo "TestTime:     30m"               >> $(METADATA)
882bd4d
	@echo "RunFor:       $(PACKAGE)"        >> $(METADATA)
882bd4d
	@echo "Architectures:   aarch64 i386 x86_64 ppc64 ppc64le"    >> $(METADATA)
882bd4d
	@echo "Type:         Regression"        >> $(METADATA)
882bd4d
	@echo "RhtsRequires: test(/CoreOS/acpica-tools/acpica-tools-tests/include)" >> $(METADATA)
882bd4d
	@echo "Requires:     $(PACKAGE)"        >> $(METADATA)
882bd4d
	@echo "Requires:     @developer-tools"  >> $(METADATA)
882bd4d
	@echo "Requires:     gcc"               >> $(METADATA)
882bd4d
	@echo "Requires:     rpm-build"         >> $(METADATA)
882bd4d
	@echo "Requires:     wget"              >> $(METADATA)
882bd4d
	rhts-lint $(METADATA)
882bd4d
#	The include package takes care of all the dependencies
882bd4d
#	Add any other dependencies there (/kernel/filesystems/xfs/include)