3 test_description
='Check correctness of oggdec output.
5 Executes para_filter -f oggdec on the test files provided by the test
6 suite and compares the output against the output of the reference
11 test_require_objects
"oggdec_filter"
12 missing_objects
="$result"
14 test_require_executables oggdec shasum
15 missing_executables
="$result"
17 get_audio_file_paths ogg
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 $PARA_FILTER -f oggdec < $ogg | shasum > filter.sha &&
32 oggdec --quiet --raw --output - - < $ogg | shasum > oggdec.sha &&
33 diff -u filter.sha oggdec.sha