Mercurial > hg > audiodb
annotate tests/0004/run-test.sh @ 239:2cc06e5b05a5
Merge refactoring branch.
Bug fixes:
* 64-bit powertable bug;
* -inf - -inf bug;
* use new times information;
* plus short track, O2_MAXFILES and structure padding ABI fixes (already
backported)
Major code changes:
* split source into functional units, known as 'files';
* Reporter class for accumulating and reporting on query results;
* much OAOOization, mostly from above: net 800 LOC (25%) shorter.
author | mas01cr |
---|---|
date | Thu, 13 Dec 2007 14:23:32 +0000 |
parents | cee75159c0bc |
children | fe4dc39b2dd7 |
rev | line source |
---|---|
mas01cr@45 | 1 #! /bin/sh |
mas01cr@45 | 2 |
mas01cr@48 | 3 . ../test-utils.sh |
mas01cr@45 | 4 |
mas01cr@45 | 5 if [ -f testdb ]; then rm -f testdb; fi |
mas01cr@45 | 6 |
mas01cr@45 | 7 ${AUDIODB} -d testdb -N |
mas01cr@45 | 8 |
mas01cr@239 | 9 ${AUDIODB} -d testdb -L |
mas01cr@239 | 10 |
mas01cr@48 | 11 intstring 2 > testfeature |
mas01cr@48 | 12 floatstring 0 1 >> testfeature |
mas01cr@48 | 13 floatstring 1 0 >> testfeature |
mas01cr@45 | 14 |
mas01cr@45 | 15 ${AUDIODB} -d testdb -I -f testfeature |
mas01cr@45 | 16 |
mas01cr@45 | 17 echo "query point (0.0,0.5)" |
mas01cr@48 | 18 intstring 2 > testquery |
mas01cr@48 | 19 floatstring 0 0.5 >> testquery |
mas01cr@45 | 20 |
mas01cr@45 | 21 ${AUDIODB} -d testdb -Q point -f testquery > testoutput |
mas01cr@63 | 22 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@63 | 23 echo testfeature 0 0 1 >> test-expected-output |
mas01cr@63 | 24 cmp testoutput test-expected-output |
mas01cr@45 | 25 ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@63 | 26 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@63 | 27 cmp testoutput test-expected-output |
mas01cr@45 | 28 |
mas01cr@45 | 29 echo "query point (0.5,0.0)" |
mas01cr@48 | 30 intstring 2 > testquery |
mas01cr@48 | 31 floatstring 0.5 0 >> testquery |
mas01cr@45 | 32 |
mas01cr@45 | 33 ${AUDIODB} -d testdb -Q point -f testquery > testoutput |
mas01cr@63 | 34 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@63 | 35 echo testfeature 0 0 0 >> test-expected-output |
mas01cr@63 | 36 cmp testoutput test-expected-output |
mas01cr@45 | 37 ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@63 | 38 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@63 | 39 cmp testoutput test-expected-output |
mas01cr@45 | 40 |
mas01cr@45 | 41 exit 104 |