Mercurial > hg > sonic-annotator
annotate tests/test-helpfulflags/test-helpfulflags.sh @ 123:b514bae9555e
Do not feed audio data to a plugin before its transform's start time (we might be feeding other transforms that started earlier). This breaks a test, but the test's expected output was broken (rather alarmingly)! Note that this does mean a plugin may have to-next-block "leakage" at start as well as end of its start-duration zone.
author | Chris Cannam |
---|---|
date | Wed, 08 Oct 2014 18:44:40 +0100 |
parents | 7a31201dc42d |
children | f0df07da6f46 |
rev | line source |
---|---|
Chris@0 | 1 #!/bin/bash |
Chris@0 | 2 |
Chris@119 | 3 . ../include.sh |
Chris@0 | 4 |
Chris@0 | 5 $r >/dev/null 2>&1 && \ |
Chris@0 | 6 fail "Return code 0 when run without args (should be a failure code)" |
Chris@0 | 7 |
Chris@0 | 8 $r 2>&1 >/dev/null | grep -q "for help" || \ |
Chris@0 | 9 fail "Improper response when run without args" |
Chris@0 | 10 |
Chris@0 | 11 $r --help 2>&1 | grep -q Copy || \ |
Chris@0 | 12 fail "Expected help not printed when run with --help" |
Chris@0 | 13 |
Chris@0 | 14 $r --list >/dev/null 2>&1 || \ |
Chris@0 | 15 fail "Fails to run with --list" |
Chris@0 | 16 |
Chris@118 | 17 $r --list 2>/dev/null | grep -q $percplug || \ |
Chris@118 | 18 fail "Fails to print $percplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" |
Chris@118 | 19 |
Chris@0 | 20 $r --list 2>/dev/null | grep -q $testplug || \ |
Chris@0 | 21 fail "Fails to print $testplug in plugin list (if you haven't got it, install it -- it's needed for other tests)" |
Chris@0 | 22 |
Chris@118 | 23 $r --skeleton $percplug >/dev/null || \ |
Chris@118 | 24 fail "Fails to run with --skeleton $percplug" |
Chris@75 | 25 |
Chris@118 | 26 $r -s $percplug >/dev/null || \ |
Chris@118 | 27 fail "Fails to run with -s $percplug" |
Chris@0 | 28 |
Chris@118 | 29 $r --skeleton $percplug >/dev/null || \ |
Chris@118 | 30 fail "Fails to run with --skeleton $percplug" |
Chris@0 | 31 |
Chris@118 | 32 $r --skeleton $percplug | rapper -i turtle - test >/dev/null 2>&1 || \ |
Chris@118 | 33 fail "Invalid XML skeleton produced with --skeleton $percplug" |
Chris@0 | 34 |
Chris@0 | 35 exit 0 |