40630c7
TOPLEVEL_NAMESPACE=fedora
40630c7
PACKAGE_NAME=systemtap
40630c7
RELATIVE_PATH=Sanity/dejagnu-smoketest
40630c7
export TESTVERSION=1.0
40630c7
export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
40630c7
40630c7
.PHONY: all install download clean
40630c7
BUILT_FILES= 
19d1385
FILES=$(METADATA) runtest.sh Makefile PURPOSE
40630c7
40630c7
run: $(FILES) build
40630c7
	./runtest.sh
40630c7
40630c7
build: $(BUILT_FILES)
19d1385
	chmod a+x ./runtest.sh
40630c7
40630c7
clean:
40630c7
	rm -f *~ *.rpm $(BUILT_FILES)
40630c7
40630c7
include /usr/share/rhts/lib/rhts-make.include
40630c7
40630c7
# Generate the testinfo.desc here:
40630c7
$(METADATA): Makefile
40630c7
	@touch $(METADATA)
40630c7
# Change to the test owner's name
40630c7
	@echo "Owner:        Frank Ch. Eigler <fche@redhat.com>" > $(METADATA)
40630c7
	@echo "Name:         $(TEST)" >> $(METADATA)
40630c7
	@echo "Path:         $(TEST_DIR)" >> $(METADATA)
40630c7
	@echo "TestVersion:  $(TESTVERSION)" >> $(METADATA)
40630c7
	@echo "Type:         Sanity" >> $(METADATA)
40630c7
	@echo "Description:  smoke test" >> $(METADATA)
40630c7
	@echo "TestTime:     10m" >> $(METADATA)
40630c7
	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)  
40630c7
	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)  
40630c7
	@echo "License:      GPLv2" >> $(METADATA)
40630c7
40630c7
# You may need other fields here; see the documentation
40630c7
	rhts-lint $(METADATA)