Start reworking the test scripts.
[tatoo.git] / Makefile.in
index 5443f6e..860c877 100644 (file)
@@ -2,7 +2,7 @@ CAMLP4FLAGS=@CAMLP4FLAGS@
 PPOPTSFLAGS= $($CAMLP4FLAGS:%=ppopt(%))
 OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@
 OCAMLBUILD=@OCAMLBUILD@
-
+PACKAGE = @PACKAGE_TARNAME@
 TARGETS=tatoo.native
 ifeq ($(BYTE), true)
        TARGETS += tatoo.byte
@@ -24,3 +24,14 @@ clean:
 
 distclean: clean
        @ rm -rf configure config.log config.status autom4te.cache Makefile
+
+%.summary:
+       target=$@ \
+       base=$* \
+       test=$${base#*.xml.} \
+       xml=$${base%.$$test} \
+       BIN=$(TEST) \
+       SPLIT=tools/split_path.native \
+       XMLDIFF=tools/xml_diff.native \
+       PACKAGE=$(PACKAGE) \
+       . tests/$${test}.sh