diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -54,18 +54,28 @@ example: .PHONY: test test: cmodule - @$(RM) luacov.stats.out - @ERR=0; \ + @$(RM) luacov.stats.out; \ + ERR=0; \ for MOD in $(sort $(MODULES)); do \ echo -n "$${MOD}: "; \ $(LUA) test/test-$${MOD}.lua; \ test "x$$?" = "x0" || ERR=1; \ + done; \ + $(LUA) extras/luacov/src/bin/luacov -X luacov. -X test. $(MODULES); \ + mv luacov.report.out luacov.report.git2.out; \ + for MOD in $(sort $(MODULES)); do \ echo -n "$${MOD} [no git2]: "; \ GALL_DISABLE_GIT2=1 $(LUA) test/test-$${MOD}.lua; \ test "x$$?" = "x0" || ERR=1; \ done; \ $(LUA) extras/luacov/src/bin/luacov -X luacov. -X test. $(MODULES); \ exit $$ERR + @echo -n "GIT2 saves "; \ + PRE=$$(grep sp.spawn_simple luacov.report.git2.out | awk '{print $$1}'); \ + POST=$$(grep sp.spawn_simple luacov.report.out | awk '{print $$1}'); \ + NORM=$$((POST - PRE)); \ + echo -n $$((NORM - PRE)) / $${NORM}; \ + echo " calls out to git." .PHONY: interactive interactive: |