diff options
Diffstat (limited to 'src/templating/test5')
| -rw-r--r-- | src/templating/test5/Makefile | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/src/templating/test5/Makefile b/src/templating/test5/Makefile new file mode 100644 index 00000000..5f3997c5 --- /dev/null +++ b/src/templating/test5/Makefile @@ -0,0 +1,13 @@ +.PHONY: test clean + +test: +	@echo starting test +	@valgrind ../mustach json must > resu.last 2> vg.last +	@sed -i 's:^==[0-9]*== ::' vg.last +	@diff -w resu.ref resu.last && echo "result ok" || echo "ERROR! Result differs" +	@awk '/^ *total heap usage: .* allocs, .* frees,.*/{if($$4-$$6)exit(1)}' vg.last || echo "ERROR! Alloc/Free issue" +	@echo + +clean: +	rm -f resu.last vg.last + | 
