nettoyer les commentaires
[tatoo.git] / tests / huibo_test.sh
diff --git a/tests/huibo_test.sh b/tests/huibo_test.sh
new file mode 100755 (executable)
index 0000000..8355ba6
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+INPUT=tests/xmark_0.00.xml
+QUERIES="$INPUT".queries
+
+cat "$QUERIES" | while read N Q;
+do
+ echo Query "$N : $Q"
+ src/table_driver.native -d "$INPUT" "$Q" > /tmp/huibo.xml
+ src/tatoo.native -d "$INPUT" "$Q" > /tmp/kim.xml
+ if diff -q /tmp/huibo.xml /tmp/kim.xml > /dev/null;
+ then
+     echo OK
+ else
+     echo Problem
+     diff -u /tmp/huibo.xml /tmp/kim.xml
+ fi
+
+done