summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 10:25:16 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 10:25:16 +0000
commit653bba3cd6bd73876319f0d9f0b61208b46fef53 (patch)
treea00e1c39a265715d1891bd5cb79e0a300c834c73 /Makefile
parente540c58b6e14f235a5aee4fedc22d07ec52cccbf (diff)
downloadgitano-653bba3cd6bd73876319f0d9f0b61208b46fef53.tar.gz
Support skipping the HTTP tests if necessary
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1dff13e..5603d42 100644
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,9 @@ basictest: local plugin-check $(TEST_BINS)
$(YARN_ARGS) \
testing/library.yarn testing/01*.yarn
-test: local plugin-check $(TEST_BINS)
+test: local plugin-check sshtests httptests
+
+sshtests: $(TEST_BINS)
@echo "Running full yarns in 'ssh' mode"
@$(YARN) \
--env GTT="$$(pwd)/testing/gitano-test-tool" \
@@ -220,6 +222,9 @@ test: local plugin-check $(TEST_BINS)
--env HTTP_FIRST_TEST_PORT=$(HTTP_FIRST_TEST_PORT) \
$(YARN_ARGS) \
testing/library.yarn $(TESTS)
+
+ifeq ($(SKIP_HTTP_TESTS),)
+httptests: $(TEST_BINS)
@echo "Running full yarns in 'http' mode"
@$(YARN) \
--env GTT="$$(pwd)/testing/gitano-test-tool" \
@@ -227,6 +232,11 @@ test: local plugin-check $(TEST_BINS)
--env HTTP_FIRST_TEST_PORT=$(HTTP_FIRST_TEST_PORT) \
$(YARN_ARGS) \
testing/library.yarn $(TESTS)
+else
+httptests:
+ @echo "WARNING: Running of yarns in 'http' mode disabled."
+ @echo "WARNING: Cannot guarantee Gitano will work in HTTP mode."
+endif
testing/%: testing/%.in $(GEN_BIN)
$(call GEN_LOCAL_BIN,$<,$@)