# HG changeset patch # User mas01cr # Date 1190299075 0 # Node ID cee75159c0bcb7e37946720cd453d73c6d48e261 # Parent 9379253c3f7826004f6f3414aa78948232e2a351 Improve test 0004 now that it's passing: actually check for correct output, not just number of results. diff -r 9379253c3f78 -r cee75159c0bc tests/0004/run-test.sh --- a/tests/0004/run-test.sh Thu Sep 20 14:29:30 2007 +0000 +++ b/tests/0004/run-test.sh Thu Sep 20 14:37:55 2007 +0000 @@ -17,17 +17,23 @@ floatstring 0 0.5 >> testquery ${AUDIODB} -d testdb -Q point -f testquery > testoutput -wc -l testoutput | grep 2 +echo testfeature 0.5 0 0 > test-expected-output +echo testfeature 0 0 1 >> test-expected-output +cmp testoutput test-expected-output ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput -wc -l testoutput | grep 1 +echo testfeature 0.5 0 0 > test-expected-output +cmp testoutput test-expected-output echo "query point (0.5,0.0)" intstring 2 > testquery floatstring 0.5 0 >> testquery ${AUDIODB} -d testdb -Q point -f testquery > testoutput -wc -l testoutput | grep 2 +echo testfeature 0.5 0 1 > test-expected-output +echo testfeature 0 0 0 >> test-expected-output +cmp testoutput test-expected-output ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput -wc -l testoutput | grep 1 +echo testfeature 0.5 0 1 > test-expected-output +cmp testoutput test-expected-output exit 104