diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 21:27:57 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 21:27:57 +0100 |
commit | 02c686dcc0b70ad66f55c2873f083e68eab0b089 (patch) | |
tree | a98e50d7de11d1cb4c53bcc4cd68380a153301b7 /Makefile | |
parent | f0613b4cc5763d3de7dd65b89e6b4f9d3c6e6190 (diff) | |
download | gall-02c686dcc0b70ad66f55c2873f083e68eab0b089.tar.gz |
GALL: Initial git2 support, saves a litle under 30% of git spawns in the test suite
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: |