aboutsummaryrefslogtreecommitdiff
path: root/src/mustach/test1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/mustach/test1/Makefile')
-rw-r--r--src/mustach/test1/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mustach/test1/Makefile b/src/mustach/test1/Makefile
new file mode 100644
index 00000000..635d8135
--- /dev/null
+++ b/src/mustach/test1/Makefile
@@ -0,0 +1,12 @@
+.PHONY: test clean
+
+test: ../mustach
+ @echo starting test
+ @valgrind ../mustach json must > resu.last 2> vg.last
+ @sed -i 's:^==[0-9]*== ::' vg.last
+ @diff resu.ref resu.last && echo "result ok" || echo "ERROR! Result differs"
+ @diff vg.ref vg.last && echo "memory ok" || echo "ERROR! Memory differs"
+
+clean:
+ rm -f resu.last vg.last
+