3 test_description='Measure time to decode ogg/vorbis files.
5 Executes para_filter -f oggdec on the test files provided by the
6 test suite and fails if it takes much longer than the reference
11 test_require_objects "oggdec_filter"
12 missing_objects="$result"
14 get_audio_file_paths ogg
17 test_require_executables "oggdec"
18 missing_executables="$result"
21 if [[ -n "$missing_objects" ]]; then
22 test_skip "${ogg##*/}" "missing object(s): $missing_objects"
25 if [[ -n "$missing_executables" ]]; then
26 test_skip "${ogg##*/}" \
27 "missing executables(s): $missing_executables"
30 test_expect_success "${ogg##*/}" '
31 test_duration oggdec --quiet --raw --output - - < $ogg &&
33 test_duration $PARA_FILTER -f oggdec < $ogg &&
35 echo "oggdec: $t1, para_filter: $t2"
36 (($t2 <= $t1 * 3 / 2 + 100))