mas01cr@277: #! /bin/bash mas01cr@126: mas01cr@126: . ../test-utils.sh mas01cr@126: mas01cr@126: if [ -f testdb ]; then rm -f testdb; fi mas01cr@126: mas01cr@126: ${AUDIODB} -d testdb -N mas01cr@126: mas01cr@126: intstring 2 > testfeature01 mas01cr@126: floatstring 0 1 >> testfeature01 mas01cr@126: intstring 2 > testfeature10 mas01cr@126: floatstring 1 0 >> testfeature10 mas01cr@126: mas01cr@126: cat > testfeaturefiles < testquery mas01cr@126: floatstring 0 0.5 >> testquery mas01cr@126: floatstring 0.5 0 >> testquery mas01cr@126: mas01cr@126: ${AUDIODB} -d testdb -Q sequence -l 1 -f testquery -p 0 > testoutput mas01cr@126: echo testfeature01 0 0 0 > test-expected-output mas01cr@126: echo testfeature10 2 0 0 >> test-expected-output mas01cr@126: cmp testoutput test-expected-output mas01cr@126: ${AUDIODB} -d testdb -Q sequence -l 1 -f testquery -r 1 -p 0 > testoutput mas01cr@126: echo testfeature01 0 0 0 > test-expected-output mas01cr@126: cmp testoutput test-expected-output mas01cr@126: mas01cr@126: echo "query point (0.5,0.0)" mas01cr@126: mas01cr@126: ${AUDIODB} -d testdb -Q sequence -l 1 -f testquery -p 1 > testoutput mas01cr@126: echo testfeature10 0 1 0 > test-expected-output mas01cr@126: echo testfeature01 2 1 0 >> test-expected-output mas01cr@126: cmp testoutput test-expected-output mas01cr@126: ${AUDIODB} -d testdb -Q sequence -l 1 -f testquery -r 1 -p 1 > testoutput mas01cr@126: echo testfeature10 0 1 0 > test-expected-output mas01cr@126: cmp testoutput test-expected-output mas01cr@126: mas01cr@126: exit 104