X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=tests%2Fhuibo_test.sh;fp=tests%2Fhuibo_test.sh;h=8355ba6f2b4774a49543dfb99877b1c333b50f8a;hp=0000000000000000000000000000000000000000;hb=72880536f01e8260441efda43430f893e8e4595b;hpb=cfaff4165f266dc2273989c9a62f3fd31c1f57ec diff --git a/tests/huibo_test.sh b/tests/huibo_test.sh new file mode 100755 index 0000000..8355ba6 --- /dev/null +++ b/tests/huibo_test.sh @@ -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