mas01cr@277: #! /bin/bash mas01cr@107: mas01cr@107: . ../test-utils.sh mas01cr@107: mas01cr@107: if [ -f testdb ]; then rm -f testdb; fi mas01cr@107: mas01cr@107: ${AUDIODB} -d testdb -N mas01cr@107: mas01cr@243: ${AUDIODB} -d testdb -L mas01cr@243: mas01cr@107: intstring 2 > testfeature mas01cr@107: floatstring 0 1 >> testfeature mas01cr@107: floatstring 1 0 >> testfeature mas01cr@107: mas01cr@107: ${AUDIODB} -d testdb -I -f testfeature mas01cr@107: mas01cr@107: echo "query point (0.0,0.5)" mas01cr@107: intstring 2 > testquery mas01cr@107: floatstring 0 0.5 >> testquery mas01cr@107: mas01cr@107: start_server ${AUDIODB} 10014 mas01cr@107: mas01cr@107: ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery > testoutput mas01cr@107: echo testfeature 0.5 0 0 > test-expected-output mas01cr@107: echo testfeature 0 0 1 >> test-expected-output mas01cr@107: cmp testoutput test-expected-output mas01cr@107: ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery -n 1 > testoutput mas01cr@107: echo testfeature 0.5 0 0 > test-expected-output mas01cr@107: cmp testoutput test-expected-output mas01cr@107: mas01cr@107: check_server $! mas01cr@107: mas01cr@107: echo "query point (0.5,0.0)" mas01cr@107: intstring 2 > testquery mas01cr@107: floatstring 0.5 0 >> testquery mas01cr@107: mas01cr@107: ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery > testoutput mas01cr@107: echo testfeature 0.5 0 1 > test-expected-output mas01cr@107: echo testfeature 0 0 0 >> test-expected-output mas01cr@107: cmp testoutput test-expected-output mas01cr@107: ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery -n 1 > testoutput mas01cr@107: echo testfeature 0.5 0 1 > test-expected-output mas01cr@107: cmp testoutput test-expected-output mas01cr@107: mas01cr@107: stop_server $! mas01cr@107: mas01cr@107: exit 104