annotate tests/0035/run-test.sh @ 220:0e872105789b refactoring

Test for correct treatment of short tracks. (This test fails both in this branch, for which the fix is forthcoming, and in trunk; hopefully there are relatively few short tracks around in "real world" uses.)
author mas01cr
date Wed, 05 Dec 2007 12:10:40 +0000
parents
children fe4dc39b2dd7
rev   line source
mas01cr@220 1 #! /bin/sh
mas01cr@220 2
mas01cr@220 3 . ../test-utils.sh
mas01cr@220 4
mas01cr@220 5 if [ -f testdb ]; then rm -f testdb; fi
mas01cr@220 6
mas01cr@220 7 ${AUDIODB} -d testdb -N
mas01cr@220 8
mas01cr@220 9 intstring 2 > testfeature1
mas01cr@220 10 floatstring 0 1 >> testfeature1
mas01cr@220 11 intstring 2 > testfeature3
mas01cr@220 12 floatstring 1 0 >> testfeature3
mas01cr@220 13 floatstring 0 1 >> testfeature3
mas01cr@220 14 floatstring 1 0 >> testfeature3
mas01cr@220 15
mas01cr@220 16 ${AUDIODB} -d testdb -I -f testfeature1
mas01cr@220 17 ${AUDIODB} -d testdb -I -f testfeature3
mas01cr@220 18
mas01cr@220 19 # sequence queries require L2NORM
mas01cr@220 20 ${AUDIODB} -d testdb -L
mas01cr@220 21
mas01cr@220 22 echo "query point (0 1, 1 0)"
mas01cr@220 23 intstring 2 > testquery
mas01cr@220 24 floatstring 0 1 >> testquery
mas01cr@220 25 floatstring 1 0 >> testquery
mas01cr@220 26
mas01cr@220 27 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -n 1 > testoutput
mas01cr@220 28 wc -l testoutput | grep "1 testoutput"
mas01cr@220 29 grep "^testfeature3 .* 0 1$" testoutput
mas01cr@220 30
mas01cr@220 31 exit 104