shithub: sox

Download patch

ref: 7f87d3a3b4a2ba597964254bb4929fc9b0e45d2c
parent: 1cf1f93bc4a884115e0c51c5392abe88e8d7a85e
author: robs <robs>
date: Sat Nov 3 10:27:53 EDT 2007

consistent checking for optional stuff

--- a/src/tests.sh
+++ b/src/tests.sh
@@ -184,9 +184,9 @@
 make sox_sample_test
 ${builddir}/sox_sample_test || exit 1
 
-${bindir}/sox --help | grep -q "flac" || skip="flac $skip"
-grep -q "^OGG_LIBS *= *-logg"   Makefile || skip="ogg $skip"
-grep -q "^#define HAVE_SNDFILE_H" ${builddir}/src/soxconfig.h || skip="caf $skip"
+# Don't test unsupported stuff
+${bindir}/sox --help | grep -q "^SUPPORTED.*\<flac\>" || skip="flac $skip"
+${bindir}/sox --help | grep -q "^SUPPORTED.*\<caf\>" || skip="caf $skip"
 
 rate=44100
 samples=23493