From 5722dda4878023a81ebccb4b5c94447ac1d805fe Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 20 Mar 2019 16:58:07 +0100 Subject: [PATCH] Add gating on tests --- tests/smoke-functionality/Makefile | 43 +++++++++++++++++++++++++ tests/smoke-functionality/PURPOSE | 3 ++ tests/smoke-functionality/blank.bin | Bin 0 -> 20480 bytes tests/smoke-functionality/data-p9.bin | Bin 0 -> 20480 bytes tests/smoke-functionality/data1.bin | Bin 0 -> 20480 bytes tests/smoke-functionality/runtest.sh | 44 ++++++++++++++++++++++++++ tests/tests.yml | 13 ++++++++ 7 files changed, 103 insertions(+) create mode 100644 tests/smoke-functionality/Makefile create mode 100644 tests/smoke-functionality/PURPOSE create mode 100644 tests/smoke-functionality/blank.bin create mode 100644 tests/smoke-functionality/data-p9.bin create mode 100644 tests/smoke-functionality/data1.bin create mode 100755 tests/smoke-functionality/runtest.sh create mode 100644 tests/tests.yml diff --git a/tests/smoke-functionality/Makefile b/tests/smoke-functionality/Makefile new file mode 100644 index 0000000..958ef8c --- /dev/null +++ b/tests/smoke-functionality/Makefile @@ -0,0 +1,43 @@ +TOPLEVEL_NAMESPACE=/CoreOS +PACKAGE_NAME=opal-prd +RELATIVE_PATH=smoke-functionality + +export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) +export TESTVERSION=1.0 + +BUILT_FILES= +FILES=$(METADATA) runtest.sh Makefile + +.PHONY: all install download clean + +run: $(FILES) build + ./runtest.sh + +build: $(BUILT_FILES) + chmod a+x ./runtest.sh + +clean: + rm -f *~ $(BUILT_FILES) + +# You may need to add other taregts e.g. to build executables from source code +# Add them here: + + +# Include Common Makefile +include /usr/share/rhts/lib/rhts-make.include + +# Generate the testinfo.desc here: +$(METADATA): Makefile + @touch $(METADATA) + @echo "Owner: Than Ngo " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Description: Basic sanity and function tests">> $(METADATA) + @echo "Type: Sanity and function" >> $(METADATA) + @echo "TestTime: 5m" >> $(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 "Requires: opal-prd" >> $(METADATA) + @echo "Requires: opal-utils" >> $(METADATA) + @echo "License: ASL 2.0" >> $(METADATA) diff --git a/tests/smoke-functionality/PURPOSE b/tests/smoke-functionality/PURPOSE new file mode 100644 index 0000000..bc65079 --- /dev/null +++ b/tests/smoke-functionality/PURPOSE @@ -0,0 +1,3 @@ +PURPOSE of /CoreOS/opal-prd/smoke-functionality +Description: Smoke, Sanity and function tests +Author: Than Ngo diff --git a/tests/smoke-functionality/blank.bin b/tests/smoke-functionality/blank.bin new file mode 100644 index 0000000000000000000000000000000000000000..c6cc6b8c239e484ec62bbc701ccf4c733a792a36 GIT binary patch literal 20480 zcmeIxu?YYG2m?X)Upfjpg5}x7`r(qjx{YT_h#&$N6i`3`1r$&~0R7i+L9c3PE~!9 z^}K3aef!1l#7~t7eFY+jFdhR-umnq>fC36Apnw7jD4>7>3Mim}0tzUgfC36Apnw7j zD4>7>3Mim}0tzUgfC36Apnw7jD4>7>3Mim}0tzUgfC36Apnw7jD4>7>3Mim}0tzU2 TtzeADR{;eSP(T3%{-MAPIkB7P literal 0 HcmV?d00001 diff --git a/tests/smoke-functionality/data1.bin b/tests/smoke-functionality/data1.bin new file mode 100644 index 0000000000000000000000000000000000000000..aa5bf1437e3ce8c74b7ea8a2b2b1dc9cbf989892 GIT binary patch literal 20480 zcmeIy!41MN3Jq#h?8wdO%dbh6%aZkxW43ec zHfvSAlGE*5J$sL~&d1LjdUEeJYd=1J_Qzweo%zK@2vs&=Y=IDj&_4s4U=wTt1r$&~ z0R