mas01cr@277: #! /bin/bash mas01cr@78: mas01cr@78: . ../test-utils.sh mas01cr@78: mas01cr@78: if [ -f testdb ]; then rm -f testdb; fi mas01cr@78: mas01cr@78: ${AUDIODB} -d testdb -N mas01cr@78: mas01cr@78: # tests that the lack of -l when the query sequence is shorter doesn't mas01cr@78: # segfault. mas01cr@78: mas01cr@78: intstring 2 > testfeature mas01cr@78: floatstring 0 1 >> testfeature mas01cr@78: floatstring 1 0 >> testfeature mas01cr@78: mas01cr@78: ${AUDIODB} -d testdb -I -f testfeature mas01cr@78: mas01cr@78: # sequence queries require L2NORM mas01cr@78: ${AUDIODB} -d testdb -L mas01cr@78: mas01cr@78: echo "query point (0.0,0.5)" mas01cr@78: intstring 2 > testquery mas01cr@78: floatstring 0 0.5 >> testquery mas01cr@78: mas01cr@78: expect_clean_error_exit ${AUDIODB} -d testdb -Q sequence -f testquery mas01cr@78: expect_clean_error_exit ${AUDIODB} -d testdb -Q sequence -f testquery -n 1 mas01cr@78: mas01cr@78: echo "query point (0.5,0.0)" mas01cr@78: intstring 2 > testquery mas01cr@78: floatstring 0.5 0 >> testquery mas01cr@78: mas01cr@78: expect_clean_error_exit ${AUDIODB} -d testdb -Q sequence -f testquery mas01cr@78: expect_clean_error_exit ${AUDIODB} -d testdb -Q sequence -f testquery -n 1 mas01cr@78: mas01cr@78: exit 104