annotate tests/0003/run-test.sh @ 206:3c7c8b84e4f3 refactoring

Delete pointQuery() and trackPointQuery() New convention for tests: an exit code of 14 means "not applicable", as in n/a = 14/1. Decorate the newly-failing tests with "exit 14".
author mas01cr
date Wed, 28 Nov 2007 17:04:09 +0000
parents f258a0258755
children c76cdcf096fd
rev   line source
mas01cr@43 1 #! /bin/sh
mas01cr@43 2
mas01cr@206 3 exit 14
mas01cr@206 4
mas01cr@48 5 . ../test-utils.sh
mas01cr@44 6
mas01cr@43 7 if [ -f testdb ]; then rm -f testdb; fi
mas01cr@43 8
mas01cr@43 9 ${AUDIODB} -d testdb -N
mas01cr@43 10
mas01cr@45 11 # We could contemplate putting the test feature (and the expected
mas01cr@45 12 # query output) under svn control if we trust its binary file
mas01cr@45 13 # handling.
mas01cr@45 14
mas01cr@43 15 # FIXME: endianness!
mas01cr@48 16 intstring 1 > testfeature
mas01cr@48 17 floatstring 1 >> testfeature
mas01cr@43 18
mas01cr@43 19 ${AUDIODB} -d testdb -I -f testfeature
mas01cr@43 20
mas01cr@46 21 ${AUDIODB} -d testdb -Q point -f testfeature > test-query-output
mas01cr@43 22
mas01cr@46 23 echo testfeature 1 0 0 > test-expected-query-output
mas01cr@43 24
mas01cr@46 25 cmp test-query-output test-expected-query-output
mas01cr@43 26
mas01cr@44 27 # failure cases
mas01cr@54 28 expect_clean_error_exit ${AUDIODB} -d testdb -I
mas01cr@54 29 expect_clean_error_exit ${AUDIODB} -d testdb -f testfeature
mas01cr@54 30 expect_clean_error_exit ${AUDIODB} -I -f testfeature
mas01cr@54 31 expect_clean_error_exit ${AUDIODB} -d testdb -Q notpoint -f testfeature
mas01cr@54 32 expect_clean_error_exit ${AUDIODB} -Q point -f testfeature
mas01cr@44 33
mas01cr@43 34 exit 104