diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-12-18 15:26:52 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-12-18 15:26:52 +0000 |
commit | 38cd3098959d12bb484dd4de4ff6817365140f33 (patch) | |
tree | 12a7fc8d314ffb8f0213c91de176f29572c0d765 /Makefile | |
parent | 3ff327994946340d1468a4484aaa1327b1c21f7d (diff) | |
download | gitano-38cd3098959d12bb484dd4de4ff6817365140f33.tar.gz |
More basic tests, checking syntax and loadability of modules
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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" \ |