abf49f22b0
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/sed#1c4b830a2cbc4a6c918202b7373d58205b70494d
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
# The toplevel namespace within which the test lives.
|
|
TOPLEVEL_NAMESPACE=/CoreOS
|
|
|
|
# The name of the package under test:
|
|
PACKAGE_NAME=sed
|
|
|
|
# The path of the test below the package:
|
|
RELATIVE_PATH=handle-escapes-correctly
|
|
|
|
# Version of the Test. Used with make tag.
|
|
export TESTVERSION=1.1
|
|
|
|
# The compiled namespace of the test.
|
|
export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
|
|
|
|
.PHONY: all install download clean
|
|
|
|
BUILT_FILES= # executables to be built should be added here, they will be generated on the system under test.
|
|
FILES=$(METADATA) runtest.sh Makefile handle-escapes-correctly.sh
|
|
|
|
run: $(FILES) build
|
|
./runtest.sh
|
|
|
|
build: $(BUILT_FILES)
|
|
chmod a+x ./runtest.sh
|
|
chmod a+x ./handle-escapes-correctly.sh
|
|
|
|
clean:
|
|
rm -f *~ $(BUILT_FILES)
|
|
|
|
# Include Common Makefile
|
|
include /usr/share/rhts/lib/rhts-make.include
|
|
|
|
# Generate the testinfo.desc here:
|
|
$(METADATA): Makefile
|
|
@touch $(METADATA)
|
|
@echo "Owner: Bastien Nocera <bnocera@redhat.com>" > $(METADATA)
|
|
@echo "Name: $(TEST)" >> $(METADATA)
|
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
@echo "License: RH Internal Test" >> $(METADATA)
|
|
@echo "Description: Tests if sed handles escapes correctly">> $(METADATA)
|
|
@echo "TestTime: 1m" >> $(METADATA)
|
|
@echo "RunFor: $(PACKAGE_NAME) " >> $(METADATA) # add any other packages for which your test ought to run here
|
|
@echo "Requires: $(PACKAGE_NAME) " >> $(METADATA) # add any other requirements for the script to run here
|
|
@echo "Priority: Normal" >> $(METADATA)
|
|
@echo "Type: Regression " >> $(METADATA)
|
|
rhts-lint $(METADATA)
|
|
|