Browse code

Add `test-extended` target to the Makefile

In order to mirror the current API that exists with Rosie bot for
running the extended tests from GitHub comments, a new `make` target
is necessary with the ability to specify the Bash entrypoint to use
and the Ginkgo focus (if applicable). We can get away with passing
the Ginkgo focus even to entrypoints that don't use Ginkgo, as it will
simply be ignored.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

Steve Kuznetsov authored on 2016/12/09 22:44:24
Showing 1 changed files
... ...
@@ -159,6 +159,22 @@ ifeq ($(TEST_ASSETS),true)
159 159
 endif
160 160
 .PHONY: test-assets
161 161
 
162
+# Run extended tests.
163
+#
164
+# Args:
165
+#   SUITE: Which Bash entrypoint under test/extended/ to use. Don't include the
166
+#          ending `.sh`. Ex: `core`.
167
+#   FOCUS: Literal string to pass to `--ginkgo.focus=`
168
+#
169
+# Example:
170
+#   make test-extended SUITE=core
171
+#   make test-extended SUITE=conformance FOCUS=pods
172
+SUITE ?= conformance
173
+FOCUS ?= .
174
+test-extended:
175
+	test/extended/$(SUITE).sh --ginkgo.focus="$(FOCUS)"
176
+.PHONY: test-extended
177
+
162 178
 # Build and run the complete test-suite.
163 179
 #
164 180
 # Example: