Mercurial > hg > audiodb
annotate tests/0019/run-test.sh @ 187:530154ca4cf5 no-big-mmap
Wow, two changes for the price of one
* remove dataBuf usage from trackPointQuery()
* make the restrict-list tests pass:
** lseek() to the right place if we're actually not doing tracks in
sequential-order;
** deal with the off-by-one error in reading in lines from trackFile.
author | mas01cr |
---|---|
date | Fri, 16 Nov 2007 16:31:36 +0000 |
parents | 3720f5a78f6e |
children | 3c7c8b84e4f3 2cc06e5b05a5 |
rev | line source |
---|---|
mas01cr@100 | 1 #! /bin/sh |
mas01cr@100 | 2 |
mas01cr@100 | 3 . ../test-utils.sh |
mas01cr@100 | 4 |
mas01cr@100 | 5 if [ -f testdb ]; then rm -f testdb; fi |
mas01cr@100 | 6 |
mas01cr@100 | 7 ${AUDIODB} -d testdb -N |
mas01cr@100 | 8 |
mas01cr@100 | 9 intstring 2 > testfeature01 |
mas01cr@100 | 10 floatstring 0 1 >> testfeature01 |
mas01cr@100 | 11 intstring 2 > testfeature10 |
mas01cr@100 | 12 floatstring 1 0 >> testfeature10 |
mas01cr@100 | 13 |
mas01cr@100 | 14 ${AUDIODB} -d testdb -I -f testfeature01 |
mas01cr@100 | 15 ${AUDIODB} -d testdb -I -f testfeature10 |
mas01cr@100 | 16 |
mas01cr@100 | 17 start_server ${AUDIODB} 10019 |
mas01cr@100 | 18 |
mas01cr@100 | 19 echo "query point (0.0,0.5)" |
mas01cr@100 | 20 intstring 2 > testquery |
mas01cr@100 | 21 floatstring 0 0.5 >> testquery |
mas01cr@100 | 22 |
mas01cr@100 | 23 ${AUDIODB} -c localhost:10019 -d testdb -Q track -l 1 -f testquery > testoutput |
mas01cr@100 | 24 echo testfeature01 0.5 0 0 > test-expected-output |
mas01cr@100 | 25 echo testfeature10 0 0 0 >> test-expected-output |
mas01cr@100 | 26 cmp testoutput test-expected-output |
mas01cr@100 | 27 ${AUDIODB} -c localhost:10019 -d testdb -Q track -l 1 -f testquery -r 1 > testoutput |
mas01cr@100 | 28 echo testfeature01 0.5 0 0 > test-expected-output |
mas01cr@100 | 29 cmp testoutput test-expected-output |
mas01cr@100 | 30 |
mas01cr@100 | 31 check_server $! |
mas01cr@100 | 32 |
mas01cr@100 | 33 echo "query point (0.5,0.0)" |
mas01cr@100 | 34 intstring 2 > testquery |
mas01cr@100 | 35 floatstring 0.5 0 >> testquery |
mas01cr@100 | 36 |
mas01cr@100 | 37 ${AUDIODB} -c localhost:10019 -d testdb -Q track -l 1 -f testquery > testoutput |
mas01cr@100 | 38 echo testfeature10 0.5 0 0 > test-expected-output |
mas01cr@100 | 39 echo testfeature01 0 0 0 >> test-expected-output |
mas01cr@100 | 40 cmp testoutput test-expected-output |
mas01cr@100 | 41 ${AUDIODB} -c localhost:10019 -d testdb -Q track -l 1 -f testquery -r 1 > testoutput |
mas01cr@100 | 42 echo testfeature10 0.5 0 0 > test-expected-output |
mas01cr@100 | 43 cmp testoutput test-expected-output |
mas01cr@100 | 44 |
mas01cr@100 | 45 stop_server $! |
mas01cr@100 | 46 |
mas01cr@100 | 47 exit 104 |