check_paranoia.sh.in: Add a more agressive paranoia test.

*version.h*: Include build name in version listings.
This commit is contained in:
rocky
2005-01-22 19:39:16 +00:00
parent 9ff5a5efa4
commit 37d52c861d
3 changed files with 23 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
/* $Id: version.h.in,v 1.4 2004/03/20 12:43:13 rocky Exp $ */ /* $Id: version.h.in,v 1.5 2005/01/22 19:39:16 rocky Exp $ */
/** \file version.h /** \file version.h
* \brief A file simply containing the library version number. * \brief A file simply containing the library version number.
*/ */
/*! CDIO_VERSION can as a string in programs to show what version is used. */ /*! CDIO_VERSION can as a string in programs to show what version is used. */
#define CDIO_VERSION "@VERSION@" #define CDIO_VERSION "@VERSION@ @build@"
/*! LIBCDIO_VERSION_NUM can be used for testing in the C preprocessor */ /*! LIBCDIO_VERSION_NUM can be used for testing in the C preprocessor */
#define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@ #define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@

View File

@@ -1,5 +1,5 @@
/* /*
$Id: version.h,v 1.3 2005/01/06 03:09:11 rocky Exp $ $Id: version.h,v 1.4 2005/01/22 19:39:16 rocky Exp $
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Monty xiphmont@mit.edu Copyright (C) 2001 Monty xiphmont@mit.edu
@@ -21,9 +21,10 @@
/****************************************************************** /******************************************************************
* cdda_paranoia generation III release 9.8 libcdio * cdda_paranoia generation III release 9.8 libcdio
******************************************************************/ ******************************************************************/
#include <cdio/version.h>
#define PARANOIA_VERSION \
#define PARANOIA_VERSION "cdparanoia III release 9.8 libcdio\n"\ "cdparanoia III release 9.8 libcdio " CDIO_VERSION "\n" \
"(C) 2001 Monty <monty@xiph.org> and Xiphophorus\n"\ "(C) 2001 Monty <monty@xiph.org> and Xiphophorus\n" \
"(C) 2004, 2005 Rocky Bernstein <rocky@panix.com>\n\n"\ "(C) 2004, 2005 Rocky Bernstein <rocky@panix.com>\n\n" \
"Report bugs to bug-libcdio@gnu.org\n" "Report bugs to bug-libcdio@gnu.org\n"

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# $Id: check_paranoia.sh.in,v 1.5 2005/01/22 18:54:19 rocky Exp $ # $Id: check_paranoia.sh.in,v 1.6 2005/01/22 19:39:16 rocky Exp $
# Compare our cd-paranoia with an installed cdparanoia # Compare our cd-paranoia with an installed cdparanoia
if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
@@ -22,14 +22,25 @@ if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
echo "** Under-run correction problem" echo "** Under-run correction problem"
exit 3 exit 3
fi fi
# Start out with small jitter
../src/cd-paranoia/cd-paranoia -d ./cdda.cue -x 5 -v -r -- "1-" ../src/cd-paranoia/cd-paranoia -d ./cdda.cue -x 5 -v -r -- "1-"
mv cdda.raw cdda-jitter.raw mv cdda.raw cdda-jitter.raw
if @CMP@ ./cdda-jitter.raw ./cdda-good.raw ; then if @CMP@ ./cdda-jitter.raw ./cdda-good.raw ; then
echo "** Jitter correction okay" echo "** Small jitter correction okay"
else else
echo "** Jitter correction problem" echo "** Small jitter correction problem"
exit 3 exit 3
fi fi
# A more massive set of failures: underrun + medium jitter
../src/cd-paranoia/cd-paranoia -d ./cdda.cue -x 70 -v -r -- "1-"
mv cdda.raw cdda-jitter.raw
if @CMP@ ./cdda-jitter.raw ./cdda-good.raw ; then
echo "** under-run + jitter correction okay"
else
echo "** under-run + jitter correction problem"
exit 3
fi
### FIXME: large jitter is known to fail. Investigate.
exit 0 exit 0
else else
echo "Don't see libcdio cd-paranoia program. Test skipped." echo "Don't see libcdio cd-paranoia program. Test skipped."