Mercurial > hg > audiodb
diff 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 |
line wrap: on
line diff
--- a/tests/0029/run-test.sh Wed Dec 24 10:55:03 2008 +0000 +++ b/tests/0029/run-test.sh Wed Dec 24 10:55:08 2008 +0000 @@ -62,14 +62,16 @@ cmp testoutput test-expected-output ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 0 > testoutput -echo testfeature 1 0 0 > test-expected-output -cmp testoutput test-expected-output +echo testfeature 1 0 0 > test-expected-output1 +echo testfeature 1 0 2 > test-expected-output2 +cmp testoutput test-expected-output1 || cmp testoutput test-expected-output2 ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --absolute-threshold=-0.8 -p 1 > testoutput cat /dev/null > test-expected-output cmp testoutput test-expected-output ${AUDIODB} -d testdb -Q sequence -l 2 -f testquery -w testquerypower --relative-threshold=0.1 -p 0 > testoutput -echo testfeature 1 0 0 > test-expected-output -cmp testoutput test-expected-output +echo testfeature 1 0 0 > test-expected-output1 +echo testfeature 1 0 2 > test-expected-output2 +cmp testoutput test-expected-output1 || cmp testoutput test-expected-output2 exit 104