aboutsummaryrefslogtreecommitdiff
path: root/src/templating/test3/Makefile
blob: bb96b3502f9b1ae1cf9ea0bee84592263c105e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.PHONY: test clean

test:
	@echo starting test
	@../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