mas01cr@220: #! /bin/sh mas01cr@220: mas01cr@220: . ../test-utils.sh mas01cr@220: mas01cr@220: if [ -f testdb ]; then rm -f testdb; fi mas01cr@220: mas01cr@220: ${AUDIODB} -d testdb -N mas01cr@220: mas01cr@220: intstring 2 > testfeature1 mas01cr@220: floatstring 0 1 >> testfeature1 mas01cr@220: intstring 2 > testfeature3 mas01cr@220: floatstring 1 0 >> testfeature3 mas01cr@220: floatstring 0 1 >> testfeature3 mas01cr@220: floatstring 1 0 >> testfeature3 mas01cr@220: mas01cr@220: ${AUDIODB} -d testdb -I -f testfeature1 mas01cr@220: ${AUDIODB} -d testdb -I -f testfeature3 mas01cr@220: mas01cr@220: # sequence queries require L2NORM mas01cr@220: ${AUDIODB} -d testdb -L mas01cr@220: mas01cr@220: echo "query point (0 1, 1 0)" mas01cr@220: intstring 2 > testquery mas01cr@220: floatstring 0 1 >> testquery mas01cr@220: floatstring 1 0 >> testquery mas01cr@220: mas01cr@220: ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -n 1 > testoutput mas01cr@220: wc -l testoutput | grep "1 testoutput" mas01cr@220: grep "^testfeature3 .* 0 1$" testoutput mas01cr@220: mas01cr@220: exit 104