Fix a bug in the test-complexity script and add more test cases.
[tatoo.git] / tests / test_complexity.sh
index 815681c..f3cc8f0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-S="//Z/ancestor::A"
+S="//M/ancestor::A"
 Q="$S"
 
 for i in `seq 1 30`
@@ -8,7 +8,7 @@ do
     src/tatoo.native -s -d tests/alphabet.xml -o /dev/null -c "$Q" 2> /tmp/log
     ST=`grep 'Number of states' /tmp/log  | cut -f 2 -d :`
     TM=`grep 'evaluating query in' /tmp/log  | cut -f 3 -d : | cut -f 1 -d m`
-    RU=`grep 'number of runs' /tmp/log  | cut -f 3 -d :`
+    RU=`grep 'traversals' /tmp/log  | cut -f 2 -d :`
     echo "$i", "$ST", "$TM", "$RU"
     Q="$Q""$S"
 done