summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-23 08:53:31 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-23 08:54:22 +0100
commit30210f5bd839c199a429b45dd3aa39dd12227c6a (patch)
treea8778bf994a7f2c88e68fe70a5a4cb7b30677ffe
parent51d33c73fd2291dbba12832b7a012fbf64e26f91 (diff)
downloadgitano-30210f5bd839c199a429b45dd3aa39dd12227c6a.tar.bz2
Report number of empty yarns to encourage more test writing
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7368df4..966e827 100644
--- a/Makefile
+++ b/Makefile
@@ -142,6 +142,15 @@ install-skel:
test: local $(TEST_BINS)
@env GTT="$$(pwd)/testing/gitano-test-tool" \
$(YARN) testing/library.yarn $(TESTS)
+ @EMPTY=0; for YFILE in $(TESTS); do \
+ if test $$(wc -l < $$YFILE) -lt 2; then \
+ echo "WARNING: $$YFILE appears to be empty"; \
+ EMPTY=$$((EMPTY + 1)); \
+ fi \
+ done; \
+ if test $$EMPTY -gt 0; then \
+ echo "WARNING: Count of empty yarns: $$EMPTY"; \
+ fi
testing/%: testing/%.in $(GEN_BIN)
$(call GEN_LOCAL_BIN,$<,$@)