| |
@@ -0,0 +1,34 @@
|
| |
+ export TESTVERSION=1.0
|
| |
+
|
| |
+ BUILT_FILES=
|
| |
+
|
| |
+ FILES=$(METADATA) runtest.sh Makefile
|
| |
+
|
| |
+ .PHONY: all install clean
|
| |
+
|
| |
+ run: $(FILES) build
|
| |
+ ./runtest.sh
|
| |
+
|
| |
+ build: $(BUILT_FILES)
|
| |
+ test -x runtest.sh || chmod a+x runtest.sh
|
| |
+
|
| |
+ clean:
|
| |
+ rm -f *~ $(BUILT_FILES)
|
| |
+
|
| |
+
|
| |
+ include /usr/share/rhts/lib/rhts-make.include
|
| |
+
|
| |
+ $(METADATA): Makefile
|
| |
+ @echo "Owner: Bruno Goncalves <bgoncalv@redhat.com>" > $(METADATA)
|
| |
+ @echo "Name: $(TEST)" >> $(METADATA)
|
| |
+ @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
| |
+ @echo "Path: $(TEST_DIR)" >> $(METADATA)
|
| |
+ @echo "Description: simple rhts test role" >> $(METADATA)
|
| |
+ @echo "Type: Sanity" >> $(METADATA)
|
| |
+ @echo "TestTime: 10m" >> $(METADATA)
|
| |
+ @echo "Priority: Normal" >> $(METADATA)
|
| |
+ @echo "License: GPLv2" >> $(METADATA)
|
| |
+ @echo "Confidential: no" >> $(METADATA)
|
| |
+ @echo "Destructive: no" >> $(METADATA)
|
| |
+
|
| |
+ rhts-lint $(METADATA)
|
| |
When we open a pull request to this repo we should be testing our own tests. Lets move the tests here, and gate in our own upstream repo ... before we even get to an RPM.
Obviously we can use these tests again when we get to dist-git.