annotate tests/0035/run-test.sh @ 597:fac63f65753e

Remove LIBGSL from library link stage At present, the library doesn't depend on libgsl. If Windows porting goes faster than APIs for sample and index, removing libgsl from the link equation will help.
author mas01cr
date Tue, 11 Aug 2009 21:57:46 +0000
parents fe4dc39b2dd7
children
rev   line source
mas01cr@252 1 #! /bin/bash
mas01cr@239 2
mas01cr@239 3 . ../test-utils.sh
mas01cr@239 4
mas01cr@239 5 if [ -f testdb ]; then rm -f testdb; fi
mas01cr@239 6
mas01cr@239 7 ${AUDIODB} -d testdb -N
mas01cr@239 8
mas01cr@239 9 intstring 2 > testfeature1
mas01cr@239 10 floatstring 0 1 >> testfeature1
mas01cr@239 11 intstring 2 > testfeature3
mas01cr@239 12 floatstring 1 0 >> testfeature3
mas01cr@239 13 floatstring 0 1 >> testfeature3
mas01cr@239 14 floatstring 1 0 >> testfeature3
mas01cr@239 15
mas01cr@239 16 ${AUDIODB} -d testdb -I -f testfeature1
mas01cr@239 17 ${AUDIODB} -d testdb -I -f testfeature3
mas01cr@239 18
mas01cr@239 19 # sequence queries require L2NORM
mas01cr@239 20 ${AUDIODB} -d testdb -L
mas01cr@239 21
mas01cr@239 22 echo "query point (0 1, 1 0)"
mas01cr@239 23 intstring 2 > testquery
mas01cr@239 24 floatstring 0 1 >> testquery
mas01cr@239 25 floatstring 1 0 >> testquery
mas01cr@239 26
mas01cr@239 27 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -n 1 > testoutput
mas01cr@239 28 wc -l testoutput | grep "1 testoutput"
mas01cr@239 29 grep "^testfeature3 .* 0 1$" testoutput
mas01cr@239 30
mas01cr@239 31 exit 104