Start reworking the test scripts.
authorKim Nguyễn <kn@lri.fr>
Tue, 9 Feb 2016 09:21:22 +0000 (10:21 +0100)
committerKim Nguyễn <kn@lri.fr>
Tue, 9 Feb 2016 09:21:22 +0000 (10:21 +0100)
Makefile.in
_tags
tests/test1.sh

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
diff --git a/_tags b/_tags
index eb50bdc..7cca00f 100644 (file)
--- a/_tags
+++ b/_tags
@@ -2,5 +2,6 @@ true: syntax(camlp4o)
 true: package(ulex), package(unix) , package(expat) , package(camlp4.macro), package(bigarray), ppopt(-I), ppopt(include)
 
 <src>: include
+<tools>: include
 <src/xpath>: include
 <src/xpath/*.cmx>: for-pack(Xpath)
index 2b02994..4cc2da4 100644 (file)
@@ -6,7 +6,6 @@ echo "$MSG"
 cat ${xml}.queries | grep -v '^#' | while read q query; do
     echo -n "${xml} $q $query ... "
     REF=${xml}.results/"$q"_jaxp.xml
-    $REMAKE "$REF"
     OUTPUT=${xml}.results/"$q"_"$PACKAGE"_test1.xml
     LOG=${xml}.results/"$q"_"$PACKAGE"_test1.log
     "$BIN" -s -d ${xml} "$query" -o "$OUTPUT" > "$LOG" 2>&1