2010-01-20 21:14:22 -05:00
|
|
|
# Copyright (C) 2003, 2004, 2006, 2008, 2009, 2010 Rocky Bernstein <rocky@gnu.org>
|
2003-03-24 19:01:09 +00:00
|
|
|
#
|
2008-03-20 19:02:37 +00:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
2003-03-24 19:01:09 +00:00
|
|
|
#
|
2008-03-20 19:02:37 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
2003-03-24 19:01:09 +00:00
|
|
|
#
|
2008-03-20 19:02:37 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
####################################################
|
2005-04-30 02:04:29 +00:00
|
|
|
# Things for regression testing
|
2003-03-24 19:01:09 +00:00
|
|
|
####################################################
|
|
|
|
|
#
|
2003-10-03 01:10:50 +00:00
|
|
|
#
|
|
|
|
|
# There's a problem with doing make distcheck for testdefault.
|
|
|
|
|
# A reminder of why I hate automake.
|
2005-01-13 03:58:47 +00:00
|
|
|
|
2010-01-20 21:14:22 -05:00
|
|
|
SUBDIRS = data driver
|
2009-12-26 11:20:55 -05:00
|
|
|
|
2005-01-13 03:58:47 +00:00
|
|
|
if BUILD_CD_PARANOIA
|
|
|
|
|
testparanoia=testparanoia
|
2008-08-31 13:38:21 +00:00
|
|
|
testparanoia_LDADD = $(LIBCDIO_PARANOIA_LIBS) $(LIBCDIO_CDDA_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
2005-01-13 03:58:47 +00:00
|
|
|
endif
|
|
|
|
|
|
2010-01-20 20:57:43 -05:00
|
|
|
hack = check_sizeof testassert testgetdevices testischar \
|
2009-12-26 11:20:55 -05:00
|
|
|
testisocd testisocd2 testiso9660 test_lib_driver_util \
|
2011-10-20 20:32:20 -04:00
|
|
|
$(testparanoia) testpregap testunconfig
|
2005-01-13 03:58:47 +00:00
|
|
|
|
2008-06-14 08:27:20 +00:00
|
|
|
EXTRA_PROGRAMS = testdefault
|
2010-01-20 20:57:43 -05:00
|
|
|
DATA_DIR = @abs_top_srcdir@/test/data
|
2003-08-17 05:31:19 +00:00
|
|
|
|
2004-12-18 17:29:32 +00:00
|
|
|
INCLUDES = -I$(top_srcdir) $(LIBCDIO_CFLAGS) $(LIBISO9660_CFLAGS)
|
2003-08-17 05:31:19 +00:00
|
|
|
|
2010-01-20 20:57:43 -05:00
|
|
|
check_sizeof_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testassert_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testdefault_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testgetdevices_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
|
|
|
|
testgetdevices_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testischar_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testiso9660_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
2004-09-05 13:03:46 +00:00
|
|
|
|
2011-10-20 20:32:20 -04:00
|
|
|
testisocd_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
testisocd2_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
|
|
|
|
|
|
|
|
testunconfig_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
2006-03-26 04:02:35 +00:00
|
|
|
|
2009-12-25 09:14:26 -05:00
|
|
|
test_lib_driver_util_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
2010-01-20 20:57:43 -05:00
|
|
|
test_lib_driver_util_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
2009-12-25 09:14:26 -05:00
|
|
|
|
2008-08-31 13:38:21 +00:00
|
|
|
testpregap_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
2010-01-20 20:57:43 -05:00
|
|
|
testpregap_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
2003-08-17 05:31:19 +00:00
|
|
|
|
2004-02-29 04:41:57 +00:00
|
|
|
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
|
2005-02-08 04:38:05 +00:00
|
|
|
check_iso.sh check_fuzzyiso.sh check_paranoia.sh check_opts.sh
|
2004-12-19 01:43:38 +00:00
|
|
|
# If we beefed this up so it checked to see if a CD-DA was loaded
|
|
|
|
|
# it could be an automatic test. But for now, not so.
|
|
|
|
|
# check_paranoia.sh
|
2003-03-24 19:01:09 +00:00
|
|
|
|
2003-10-03 01:10:50 +00:00
|
|
|
check_PROGRAMS = $(hack)
|
2003-08-17 05:31:19 +00:00
|
|
|
|
2005-01-22 23:57:10 +00:00
|
|
|
check_DATA = vcd_demo.right vcd_demo_vcdinfo.right \
|
2010-01-20 20:57:43 -05:00
|
|
|
videocd.right \
|
|
|
|
|
cdda.right \
|
2005-02-20 16:21:06 +00:00
|
|
|
isofs-m1.right isofs-m1-no-rr.right \
|
2008-03-06 01:34:09 +00:00
|
|
|
cd-paranoia-log.right \
|
2003-04-14 08:54:50 +00:00
|
|
|
check_opts0.right check_opts1.right check_opts2.right \
|
|
|
|
|
check_opts3.right check_opts4.right check_opts5.right \
|
2003-09-20 00:28:31 +00:00
|
|
|
check_opts6.right check_opts7.right \
|
2004-02-29 15:04:27 +00:00
|
|
|
isofs-m1-read.right cdda-read.right \
|
2010-01-20 20:57:43 -05:00
|
|
|
copying.right copying-rr.right \
|
|
|
|
|
joliet.right joliet-nojoliet.right \
|
2006-11-16 15:07:07 +00:00
|
|
|
udf102.iso copying.gpl copying-rr.gpl
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
EXTRA_DIST = $(check_SCRIPTS) $(check_DATA) \
|
2006-03-07 02:38:44 +00:00
|
|
|
check_common_fn check_cue.sh.in check_nrg.sh.in \
|
2010-01-21 02:58:19 -05:00
|
|
|
testpregap.c.in \
|
2010-01-20 20:57:43 -05:00
|
|
|
testgetdevices.c.in check_iso.sh.in
|
2003-03-24 19:01:09 +00:00
|
|
|
|
2003-09-14 07:49:12 +00:00
|
|
|
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
2003-09-14 09:34:17 +00:00
|
|
|
XFAIL_TESTS = testassert
|
2003-03-24 19:01:09 +00:00
|
|
|
|
2005-01-16 04:20:32 +00:00
|
|
|
MOSTLYCLEANFILES = core core.* *.dump cdda-orig.wav cdda-try.wav *.raw
|
2003-09-17 02:51:44 +00:00
|
|
|
|
2005-04-11 02:57:04 +00:00
|
|
|
test: check-am
|
2004-10-26 01:21:05 +00:00
|
|
|
|
2003-09-28 22:14:44 +00:00
|
|
|
# This is a really bad hack to make sure check_nrg and check_cue.sh
|
2003-09-17 02:51:44 +00:00
|
|
|
# are executable. Automake will remake check_nrg.sh and check_cue.sh
|
|
|
|
|
# but not run the configure default commands for them to make sure
|
|
|
|
|
# they are executable. You know it would be nice one could just set
|
|
|
|
|
# permissions and mode when it makes the files. I'm sure there's some
|
|
|
|
|
# cleaner a way to do this, but frankly I've wasted far too much of my
|
|
|
|
|
# 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
|
2004-12-19 00:02:09 +00:00
|
|
|
make-executable: check_nrg.sh check_cue.sh check_paranoia.sh
|
2004-09-05 13:03:46 +00:00
|
|
|
chmod +x *.sh
|
2010-01-21 03:48:13 -05:00
|
|
|
if test ! -f cdda.bin ; then \
|
|
|
|
|
test -L cdda.bin && $(RM) cdda.bin ; \
|
|
|
|
|
$(LN_S) $(abs_top_srcdir)/test/data/cdda.bin cdda.bin ; \
|
|
|
|
|
fi
|
|
|
|
|
if test ! -f isofs-m1.bin ; then \
|
|
|
|
|
test -L cdda.bin && $(RM) isofs-m1.bin ; \
|
|
|
|
|
$(LN_S) $(abs_top_srcdir)/test/data/isofs-m1.bin isofs-m1.bin ; \
|
|
|
|
|
fi
|