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>
... | ... |
@@ -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: |