This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
libcdio-osx/test/Makefile.am

115 lines
4.7 KiB
Makefile
Raw Normal View History

# $Id: Makefile.am,v 1.69 2008/08/31 13:38:22 flameeyes Exp $
2003-03-24 19:01:09 +00:00
#
2008-03-20 19:02:37 +00:00
# Copyright (C) 2003, 2004, 2006, 2008 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
####################################################
#
#
# There's a problem with doing make distcheck for testdefault.
# A reminder of why I hate automake.
if BUILD_CD_PARANOIA
testparanoia=testparanoia
testparanoia_LDADD = $(LIBCDIO_PARANOIA_LIBS) $(LIBCDIO_CDDA_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
endif
hack = check_sizeof testassert testbincue testgetdevices testischar \
testisocd testisocd2 testiso9660 \
2008-03-22 22:43:56 +00:00
testnrg $(testparanoia) testtoc testpregap
EXTRA_PROGRAMS = testdefault
INCLUDES = -I$(top_srcdir) $(LIBCDIO_CFLAGS) $(LIBISO9660_CFLAGS)
check_sizeof_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
testassert_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testdefault_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testgetdevices_LDADD= $(LIBCDIO_LIBS) $(LTLIBICONV)
testischar_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
testiso9660_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
testisocd_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
testisocd2_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
2006-03-26 04:02:35 +00:00
testtoc_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testtoc_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testpregap_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
2008-03-18 05:57:05 +00:00
testpregap_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testbincue_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testbincue_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testnrg_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
2008-03-22 22:43:56 +00:00
testnrg_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
check_iso.sh check_fuzzyiso.sh check_paranoia.sh check_opts.sh
# 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
check_PROGRAMS = $(hack)
check_DATA = vcd_demo.right vcd_demo_vcdinfo.right \
2003-04-24 02:45:04 +00:00
videocd.right videocd.nrg \
cdda.right cdda.toc cdda.cue cdda.bin \
isofs-m1.right isofs-m1-no-rr.right \
isofs-m1.toc isofs-m1.cue isofs-m1.bin \
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 \
check_opts6.right check_opts7.right \
isofs-m1-read.right cdda-read.right \
t1.toc t2.toc t3.toc t4.toc t5.toc t6.toc t7.toc t8.toc t9.toc \
data1.toc data2.toc data5.toc data6.toc data7.toc \
vcd2.toc cdtext.toc \
bad-mode1.cue bad-msf-1.cue bad-msf-2.cue bad-msf-3.cue \
bad-mode1.toc bad-msf-1.toc bad-msf-2.toc bad-msf-3.toc \
2004-07-09 20:47:08 +00:00
bad-cat1.cue bad-cat2.cue bad-cat3.cue \
bad-cat1.toc bad-cat2.toc bad-cat3.toc bad-file.toc \
2005-03-05 23:51:40 +00:00
copying.iso copying.right copying-rr.iso copying-rr.right \
joliet.iso joliet.right joliet-nojoliet.right \
udf102.iso copying.gpl copying-rr.gpl
2003-03-24 19:01:09 +00:00
EXTRA_DIST = $(check_SCRIPTS) $(check_DATA) \
check_common_fn check_cue.sh.in check_nrg.sh.in \
testbincue.c.in testpregap.c.in testnrg.c.in \
check_iso.sh.in p1.bin p1.cue p1.nrg
2003-03-24 19:01:09 +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
MOSTLYCLEANFILES = core core.* *.dump cdda-orig.wav cdda-try.wav *.raw
test: check-am
2003-09-28 22:14:44 +00:00
# This is a really bad hack to make sure check_nrg and check_cue.sh
# 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
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