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