Mercurial > hg > audiodb
annotate tests/0004/run-test.sh @ 80:a1d462d592dd audiodb-debian
Merge trunk changes -r94:95 onto audiodb-debian branch
(+ new debian/changelog version)
author | mas01cr |
---|---|
date | Mon, 01 Oct 2007 14:59:03 +0000 |
parents | 06922d637752 |
children | 15b8ff55ea5b |
rev | line source |
---|---|
mas01cr@78 | 1 #! /bin/sh |
mas01cr@78 | 2 |
mas01cr@78 | 3 . ../test-utils.sh |
mas01cr@78 | 4 |
mas01cr@78 | 5 if [ -f testdb ]; then rm -f testdb; fi |
mas01cr@78 | 6 |
mas01cr@78 | 7 ${AUDIODB} -d testdb -N |
mas01cr@78 | 8 |
mas01cr@78 | 9 intstring 2 > testfeature |
mas01cr@78 | 10 floatstring 0 1 >> testfeature |
mas01cr@78 | 11 floatstring 1 0 >> testfeature |
mas01cr@78 | 12 |
mas01cr@78 | 13 ${AUDIODB} -d testdb -I -f testfeature |
mas01cr@78 | 14 |
mas01cr@78 | 15 echo "query point (0.0,0.5)" |
mas01cr@78 | 16 intstring 2 > testquery |
mas01cr@78 | 17 floatstring 0 0.5 >> testquery |
mas01cr@78 | 18 |
mas01cr@78 | 19 ${AUDIODB} -d testdb -Q point -f testquery > testoutput |
mas01cr@78 | 20 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@78 | 21 echo testfeature 0 0 1 >> test-expected-output |
mas01cr@78 | 22 cmp testoutput test-expected-output |
mas01cr@78 | 23 ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@78 | 24 echo testfeature 0.5 0 0 > test-expected-output |
mas01cr@78 | 25 cmp testoutput test-expected-output |
mas01cr@78 | 26 |
mas01cr@78 | 27 echo "query point (0.5,0.0)" |
mas01cr@78 | 28 intstring 2 > testquery |
mas01cr@78 | 29 floatstring 0.5 0 >> testquery |
mas01cr@78 | 30 |
mas01cr@78 | 31 ${AUDIODB} -d testdb -Q point -f testquery > testoutput |
mas01cr@78 | 32 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@78 | 33 echo testfeature 0 0 0 >> test-expected-output |
mas01cr@78 | 34 cmp testoutput test-expected-output |
mas01cr@78 | 35 ${AUDIODB} -d testdb -Q point -f testquery -n 1 > testoutput |
mas01cr@78 | 36 echo testfeature 0.5 0 1 > test-expected-output |
mas01cr@78 | 37 cmp testoutput test-expected-output |
mas01cr@78 | 38 |
mas01cr@78 | 39 exit 104 |