annotate tests/0035/run-test.sh @ 277:abfb26e08d9c audiodb-debian

Merge trunk changes -r326:386 into audiodb-debian branch. Plus new debian/changelog version. (Should have used an epoch really, but couldn't be bothered; TODO: work out a sane version numbering policy).
author mas01cr
date Tue, 01 Jul 2008 09:12:40 +0000
parents 15b8ff55ea5b
children
rev   line source
mas01cr@277 1 #! /bin/bash
mas01cr@243 2
mas01cr@243 3 . ../test-utils.sh
mas01cr@243 4
mas01cr@243 5 if [ -f testdb ]; then rm -f testdb; fi
mas01cr@243 6
mas01cr@243 7 ${AUDIODB} -d testdb -N
mas01cr@243 8
mas01cr@243 9 intstring 2 > testfeature1
mas01cr@243 10 floatstring 0 1 >> testfeature1
mas01cr@243 11 intstring 2 > testfeature3
mas01cr@243 12 floatstring 1 0 >> testfeature3
mas01cr@243 13 floatstring 0 1 >> testfeature3
mas01cr@243 14 floatstring 1 0 >> testfeature3
mas01cr@243 15
mas01cr@243 16 ${AUDIODB} -d testdb -I -f testfeature1
mas01cr@243 17 ${AUDIODB} -d testdb -I -f testfeature3
mas01cr@243 18
mas01cr@243 19 # sequence queries require L2NORM
mas01cr@243 20 ${AUDIODB} -d testdb -L
mas01cr@243 21
mas01cr@243 22 echo "query point (0 1, 1 0)"
mas01cr@243 23 intstring 2 > testquery
mas01cr@243 24 floatstring 0 1 >> testquery
mas01cr@243 25 floatstring 1 0 >> testquery
mas01cr@243 26
mas01cr@243 27 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -n 1 > testoutput
mas01cr@243 28 wc -l testoutput | grep "1 testoutput"
mas01cr@243 29 grep "^testfeature3 .* 0 1$" testoutput
mas01cr@243 30
mas01cr@243 31 exit 104