summaryrefslogtreecommitdiff
path: root/src/mustach/test6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/mustach/test6/Makefile')
-rw-r--r--src/mustach/test6/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mustach/test6/Makefile b/src/mustach/test6/Makefile
new file mode 100644
index 00000000..35359fd0
--- /dev/null
+++ b/src/mustach/test6/Makefile
@@ -0,0 +1,16 @@
+.PHONY: test clean
+
+test-custom-write: test-custom-write.c ../mustach-json-c.h ../mustach-json-c.c ../mustach.h ../mustach.c
+ @echo building test-custom-write
+ $(CC) $(CFLAGS) -g -o test-custom-write test-custom-write.c ../mustach.c ../mustach-json-c.c -ljson-c
+
+test: test-custom-write
+ @echo starting test
+ @valgrind ./test-custom-write json -U must -l must -x 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 test-custom-write
+