Mercurial > hg > audiodb
annotate tests/0014/run-test.sh @ 171:bb934f91d85c powertable
Web services interface to the powertable functionality.
* Implemented as a completely new SOAP method, called sequenceQuery
* lightly tested with http://doc.gold.ac.uk/~mas01cr/poweradb.php
(lacuna: need to pass relative-threshold and absolute-threshold always,
even when they don't make sense.)
Several uglinesses in the code, some of which will be resolved once all
the various branches are merged into the trunk.
author | mas01cr |
---|---|
date | Wed, 14 Nov 2007 14:00:53 +0000 |
parents | 7e3483e53c3b |
children | 3c7c8b84e4f3 2cc06e5b05a5 |
rev | line source |
---|---|
mas01cr@88 | 1 #! /bin/sh |
mas01cr@88 | 2 |
mas01cr@88 | 3 . ../test-utils.sh |
mas01cr@88 | 4 |
mas01cr@88 | 5 if [ -f testdb ]; then rm -f testdb; fi |
mas01cr@88 | 6 |
mas01cr@88 | 7 ${AUDIODB} -d testdb -N |
mas01cr@88 | 8 |
mas01cr@88 | 9 intstring 2 > testfeature |
mas01cr@88 | 10 floatstring 0 1 >> testfeature |
mas01cr@88 | 11 floatstring 1 0 >> testfeature |
mas01cr@88 | 12 |
mas01cr@88 | 13 ${AUDIODB} -d testdb -I -f testfeature |
mas01cr@88 | 14 |
mas01cr@88 | 15 echo "query point (0.0,0.5)" |
mas01cr@88 | 16 intstring 2 > testquery |
mas01cr@88 | 17 floatstring 0 0.5 >> testquery |
mas01cr@88 | 18 |
mas01cr@88 | 19 start_server ${AUDIODB} 10014 |
mas01cr@88 | 20 |
mas01cr@88 | 21 ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery > testoutput |
mas01cr@88 | 22 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@88 | 23 echo testfeature 0 0 1 >> test-expected-output |
mas01cr@88 | 24 cmp testoutput test-expected-output |
mas01cr@88 | 25 ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@88 | 26 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@88 | 27 cmp testoutput test-expected-output |
mas01cr@88 | 28 |
mas01cr@88 | 29 check_server $! |
mas01cr@88 | 30 |
mas01cr@88 | 31 echo "query point (0.5,0.0)" |
mas01cr@88 | 32 intstring 2 > testquery |
mas01cr@88 | 33 floatstring 0.5 0 >> testquery |
mas01cr@88 | 34 |
mas01cr@88 | 35 ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery > testoutput |
mas01cr@88 | 36 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@88 | 37 echo testfeature 0 0 0 >> test-expected-output |
mas01cr@88 | 38 cmp testoutput test-expected-output |
mas01cr@88 | 39 ${AUDIODB} -c localhost:10014 -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@88 | 40 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@88 | 41 cmp testoutput test-expected-output |
mas01cr@88 | 42 |
mas01cr@88 | 43 stop_server $! |
mas01cr@88 | 44 |
mas01cr@88 | 45 exit 104 |