- ./disorder-normalize --config config > decoded.raw
- oggdec -b 16 -e 1 -R -s 1 -o oggdec.raw ${top_srcdir}/sounds/scratch.ogg
- cmp decoded.raw oggdec.raw
- sox ${top_srcdir}/sounds/scratch.ogg scratch.wav
- ./disorder-decode scratch.wav | \
- ./disorder-normalize --config config > decoded.raw
- ls -l *.raw
- cmp decoded.raw oggdec.raw
- rm -f scratch.wav config decoded.raw oggdec.raw
-
-EXTRA_DIST=README.dbversions
+ ./disorder-normalize --config ${srcdir}/test-config > ogged.raw
+ cmp 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
+ 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
+ rm -f flacced.raw
+
+EXTRA_DIST=README.dbversions test-config
+
+CLEANFILES=*.gcda *.gcov *.gcno *.c.html index.html