Mercurial > hg > audiodb
annotate tests/0004/run-test.sh @ 673:e1f7cab30701
rename struct adbfoo to struct adb_foo
(or nearest idiomatic equivalent in the appropriate language)
This should have minimal impact on ABI compatibility, but is still formally
a backward-incompatible change (and is potentially an API incompatibility
too, though everyone should be using the typedefed synonyms.
author | mas01cr |
---|---|
date | Fri, 05 Mar 2010 16:00:58 +0000 |
parents | fe4dc39b2dd7 |
children |
rev | line source |
---|---|
mas01cr@252 | 1 #! /bin/bash |
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 |