Mercurial > hg > audiodb
comparison tests/0029/run-test.sh @ 423:b09d2eb1a2b2 api-inversion
Cheap hackery abounds.
Include an accumulator into the query_loop chain. Somewhat
surprisingly, very few tests fail, and those that do are due to
over-specific reporting requirements in the case of ties, so rewrite
those tests to be more permissive.
There are probably codepaths which ignore the accumulator completely;
they will still work, because the accumulator will return zero points
when it is asked to ->get_points().
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:55:08 +0000 |
parents | fe4dc39b2dd7 |
children |
comparison
equal
deleted
inserted
replaced
422:a7d61291fbda | 423:b09d2eb1a2b2 |
---|---|
60 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-1.4 -p 1 > testoutput | 60 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-1.4 -p 1 > testoutput |
61 echo testfeature 1 1 0 > test-expected-output | 61 echo testfeature 1 1 0 > test-expected-output |
62 cmp testoutput test-expected-output | 62 cmp testoutput test-expected-output |
63 | 63 |
64 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 0 > testoutput | 64 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 0 > testoutput |
65 echo testfeature 1 0 0 > test-expected-output | 65 echo testfeature 1 0 0 > test-expected-output1 |
66 cmp testoutput test-expected-output | 66 echo testfeature 1 0 2 > test-expected-output2 |
67 cmp testoutput test-expected-output1 || cmp testoutput test-expected-output2 | |
67 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 1 > testoutput | 68 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 1 > testoutput |
68 cat /dev/null > test-expected-output | 69 cat /dev/null > test-expected-output |
69 cmp testoutput test-expected-output | 70 cmp testoutput test-expected-output |
70 | 71 |
71 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --relative-threshold=0.1 -p 0 > testoutput | 72 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --relative-threshold=0.1 -p 0 > testoutput |
72 echo testfeature 1 0 0 > test-expected-output | 73 echo testfeature 1 0 0 > test-expected-output1 |
73 cmp testoutput test-expected-output | 74 echo testfeature 1 0 2 > test-expected-output2 |
75 cmp testoutput test-expected-output1 || cmp testoutput test-expected-output2 | |
74 | 76 |
75 exit 104 | 77 exit 104 |