changeset 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 d1c912ff8286
children b67fd44ce667
files tests/0035/run-test.sh tests/0035/short-description
diffstat 2 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
--- /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