summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-18 15:26:52 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-18 15:26:52 +0000
commit38cd3098959d12bb484dd4de4ff6817365140f33 (patch)
tree12a7fc8d314ffb8f0213c91de176f29572c0d765 /Makefile
parent3ff327994946340d1468a4484aaa1327b1c21f7d (diff)
downloadgitano-38cd3098959d12bb484dd4de4ff6817365140f33.tar.gz
More basic tests, checking syntax and loadability of modules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5dc5fb9..279d590 100644
--- a/Makefile
+++ b/Makefile
@@ -192,7 +192,13 @@ ifeq ($(filter $(TEST_PROTO),ssh http),)
$(error TEST_PROTO should be ssh or http)
endif
-basictest: local $(TEST_BINS)
+plugin-check:
+ $(LUAC) -p $(patsubst %,plugins/%,$(PLUGINS))
+ for PLUGIN in $(patsubst %,plugins/%,$(PLUGINS)); do \
+ env LUA_PATH="$(shell pwd)/lib/?.lua;;" $(LUA) $$PLUGIN; \
+ done
+
+basictest: local plugin-check $(TEST_BINS)
@echo "Running basic yarns in '$(TEST_PROTO)' mode"
@echo "Set TEST_PROTO if you want to change that"
@$(YARN) \
@@ -201,7 +207,7 @@ basictest: local $(TEST_BINS)
$(YARN_ARGS) \
testing/library.yarn testing/01*.yarn
-test: local $(TEST_BINS)
+test: local plugin-check $(TEST_BINS)
@echo "Running full yarns in 'ssh' mode"
@$(YARN) \
--env GTT="$$(pwd)/testing/gitano-test-tool" \