test/*, configure.ac:

First paranoia regression test. It's run automatically as it assumes
  that you have a *flawless* CD-DA in a drive.

*.{c,h}: more integration toward libcdio routines. In particular remove
swap16 and swap32.
This commit is contained in:
rocky
2004-12-19 00:02:09 +00:00
parent 8b111096d3
commit 81d0304b7e
7 changed files with 67 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.35 2004/12/18 17:29:32 rocky Exp $
# $Id: Makefile.am,v 1.36 2004/12/19 00:02:09 rocky Exp $
#
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
#
@@ -41,7 +41,7 @@ testbincue_LDADD = $(LIBCDIO_LIBS)
testbincue_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
check_iso.sh check_opts.sh
check_iso.sh check_opts.sh check_paranoia.sh
check_PROGRAMS = $(hack)
@@ -68,7 +68,7 @@ EXTRA_DIST = $(check_SCRIPTS) $(check_DATA) \
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
XFAIL_TESTS = testassert
MOSTLYCLEANFILES = core core.* *.dump
MOSTLYCLEANFILES = core core.* *.dump cdda-orig.wav cdda-try.wav
test: check
@@ -81,7 +81,7 @@ test: check
# life the crappy automess system that I've really lost interest in
# learning any more of this awful system than I need to.
check-am: make-executable
make-executable: check_nrg.sh check_cue.sh
make-executable: check_nrg.sh check_cue.sh check_paranoia.sh
chmod +x *.sh
if test ! -f cdda.bin ; then $(LN_S) $(srcdir)/cdda.bin cdda.bin ; fi
if test ! -f isofs-m1.bin ; then $(LN_S) $(srcdir)/isofs-m1.bin isofs-m1.bin ; fi

31
test/check_paranoia.sh.in Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/sh
# $Id: check_paranoia.sh.in,v 1.1 2004/12/19 00:02:09 rocky Exp $
# Compare our cd-paranoia with an installed cdparanoia
if test "@OLD_CDPARANOIA@" != no -a -x @OLD_CDPARANOIA@ ; then
if test "@CMP@" != no -a -x @OLD_CDPARANOIA@ ; then
for opt in '' '-r' '-p' '-f' '-a' ; do
frames='"1[:130]-1[:134]"'
../src/cd-paranoia/cd-paranoia $frames cdda-try.wav
@OLD_CDPARANOIA@ $frames cdda-orig.wav
if @CMP@ cdda-try.wav cdda-orig.wav ; then
echo "** New and old paranoia output are identical using option '$opt'"
else
echo "** New and old paranoia output differ using option $opt"
exit 3
fi
done
exit 0
else
echo "Don't see libcdio cd-paranoia program. Test skipped."
exit 77
fi
else
echo "Don't see non-libcdio cdparanoia program. Test skipped."
exit 77
fi
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***