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