chiark / gitweb /
scripts/compare-raw, server/Makefile.am: Add script for comparing raw audio.
[disorder] / server / Makefile.am
index d274e7d1cf4d5dda1e4f5b3ebc5889197f9e08fd..2447485081a6561fff2a3628a9534ac1c1356e54 100644 (file)
@@ -62,7 +62,7 @@ AM_CFLAGS+=$(GSTREAMER_CFLAGS)
 sbin_PROGRAMS+=disorder-gstdecode
 disorder_gstdecode_SOURCES=gstdecode.c disorder-server.h
 disorder_gstdecode_LDADD=$(LIBOBJS) ../lib/libdisorder.a \
-       $(GSTREAMER_PLUGINS_BASE_LIBS) -lgstaudio-0.10 -lgstapp-0.10 \
+       $(GSTREAMER_PLUGINS_BASE_LIBS) \
        $(GSTREAMER_LIBS) $(LIBGCRYPT) $(LIBPCRE)
 disorder_gstdecode_DEPENDENCIES=../lib/libdisorder.a
 endif
@@ -141,7 +141,8 @@ check-decode: check-wav check-flac check-mp3
 check-mp3: disorder-decode disorder-normalize
        ./disorder-decode ${top_srcdir}/sounds/scratch.mp3 | \
          ./disorder-normalize --config ${srcdir}/test-config > mp3ed.raw
-       cmp mp3ed.raw ${top_srcdir}/sounds/scratch-mp3.raw
+       $(top_srcdir)/scripts/compare-raw 0 \
+               mp3ed.raw ${top_srcdir}/sounds/scratch-mp3.raw
        rm -f mp3ed.raw
 
 # TODO ogg decoding comes out OK but different depending on platform, version
@@ -149,19 +150,22 @@ check-mp3: disorder-decode disorder-normalize
 check-ogg: disorder-decode disorder-normalize
        ./disorder-decode ${top_srcdir}/sounds/scratch.ogg | \
          ./disorder-normalize --config ${srcdir}/test-config > ogged.raw
-       cmp ogged.raw ${top_srcdir}/sounds/scratch.raw
+       $(top_srcdir)/scripts/compare-raw 0 \
+               ogged.raw ${top_srcdir}/sounds/scratch.raw
        rm -f ogged.raw
 
 check-wav: disorder-decode disorder-normalize
        ./disorder-decode ${top_srcdir}/sounds/scratch.wav | \
          ./disorder-normalize --config ${srcdir}/test-config > waved.raw
-       cmp waved.raw ${top_srcdir}/sounds/scratch.raw
+       $(top_srcdir)/scripts/compare-raw 0 \
+               waved.raw ${top_srcdir}/sounds/scratch.raw
        rm -rf waved.raw
 
 check-flac: disorder-decode disorder-normalize
        ./disorder-decode ${top_srcdir}/sounds/scratch.flac | \
          ./disorder-normalize --config ${srcdir}/test-config > flacced.raw
-       cmp flacced.raw ${top_srcdir}/sounds/scratch.raw
+       $(top_srcdir)/scripts/compare-raw 0 \
+               flacced.raw ${top_srcdir}/sounds/scratch.raw
        rm -f flacced.raw
 
 EXTRA_DIST=README.dbversions test-config