# HG changeset patch # User mas01cr # Date 1196856640 0 # Node ID 0e872105789b9d6791f6b359ad01d41f99352512 # Parent d1c912ff8286f013c76ea3c36361dd2a6f81a433 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.) diff -r d1c912ff8286 -r 0e872105789b tests/0035/run-test.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/0035/run-test.sh Wed Dec 05 12:10:40 2007 +0000 @@ -0,0 +1,31 @@ +#! /bin/sh + +. ../test-utils.sh + +if [ -f testdb ]; then rm -f testdb; fi + +${AUDIODB} -d testdb -N + +intstring 2 > testfeature1 +floatstring 0 1 >> testfeature1 +intstring 2 > testfeature3 +floatstring 1 0 >> testfeature3 +floatstring 0 1 >> testfeature3 +floatstring 1 0 >> testfeature3 + +${AUDIODB} -d testdb -I -f testfeature1 +${AUDIODB} -d testdb -I -f testfeature3 + +# sequence queries require L2NORM +${AUDIODB} -d testdb -L + +echo "query point (0 1, 1 0)" +intstring 2 > testquery +floatstring 0 1 >> testquery +floatstring 1 0 >> testquery + +${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -n 1 > testoutput +wc -l testoutput | grep "1 testoutput" +grep "^testfeature3 .* 0 1$" testoutput + +exit 104 diff -r d1c912ff8286 -r 0e872105789b tests/0035/short-description --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/0035/short-description Wed Dec 05 12:10:40 2007 +0000 @@ -0,0 +1,1 @@ +-l 2 search with short tracks \ No newline at end of file