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