Move driver tests into a separate directory.

This commit is contained in:
R. Bernstein
2009-12-26 11:20:55 -05:00
parent 205ced6a7c
commit cb35e2877c
7 changed files with 41 additions and 11 deletions

View File

@@ -660,6 +660,7 @@ AC_CONFIG_FILES([
src/cd-paranoia/doc/ja/cd-paranoia.1 \ src/cd-paranoia/doc/ja/cd-paranoia.1 \
src/cd-paranoia/doc/ja/Makefile \ src/cd-paranoia/doc/ja/Makefile \
src/Makefile \ src/Makefile \
test/driver/Makefile \
test/testbincue.c \ test/testbincue.c \
test/testgetdevices.c \ test/testgetdevices.c \
test/testisocd2.c \ test/testisocd2.c \

View File

@@ -11,9 +11,10 @@
#define CDIO_VERSION "@VERSION@ @build@" #define CDIO_VERSION "@VERSION@ @build@"
extern const char *cdio_version_string; /**< = CDIO_VERSION */ extern const char *cdio_version_string; /**< = CDIO_VERSION */
/*! LIBCDIO_VERSION_NUM can be used for testing in the C preprocessor, /*! LIBCDIO_VERSION_NUM is a C-Preprocessor macro that can be used for
libcdio_version_num has the same value, but it is a constant variable testing in the C preprocessor. libcdio_version_num has the same
that can be accessed at run time. */ value, but it is a constant variable that can be accessed at run
time. */
#define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@ #define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@
extern const unsigned int libcdio_version_num; /**< = LIBCDIO_VERSION_NUM */ extern const unsigned int libcdio_version_num; /**< = LIBCDIO_VERSION_NUM */

View File

@@ -21,14 +21,16 @@
# There's a problem with doing make distcheck for testdefault. # There's a problem with doing make distcheck for testdefault.
# A reminder of why I hate automake. # A reminder of why I hate automake.
SUBDIRS = driver
if BUILD_CD_PARANOIA if BUILD_CD_PARANOIA
testparanoia=testparanoia testparanoia=testparanoia
testparanoia_LDADD = $(LIBCDIO_PARANOIA_LIBS) $(LIBCDIO_CDDA_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV) testparanoia_LDADD = $(LIBCDIO_PARANOIA_LIBS) $(LIBCDIO_CDDA_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
endif endif
hack = check_sizeof testassert testbincue testgetdevices testischar \ hack = check_sizeof testassert testbincue testgetdevices testischar \
testisocd testisocd2 testiso9660 testlinux test_lib_driver_util \ testisocd testisocd2 testiso9660 test_lib_driver_util \
testnrg $(testparanoia) testtoc testpregap testsolaris testnrg $(testparanoia) testtoc testpregap
EXTRA_PROGRAMS = testdefault EXTRA_PROGRAMS = testdefault
@@ -50,12 +52,6 @@ testtoc_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
test_lib_driver_util_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV) test_lib_driver_util_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
tets_lib_driver_util_CFLAGS = -DTEST_DIR=\"$(srcdir)\" tets_lib_driver_util_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testlinux_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testlinux_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testsolaris_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testsolaris_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
testpregap_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV) testpregap_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
testpregap_CFLAGS = -DTEST_DIR=\"$(srcdir)\" testpregap_CFLAGS = -DTEST_DIR=\"$(srcdir)\"

1
test/driver/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/*~

31
test/driver/Makefile.am Normal file
View File

@@ -0,0 +1,31 @@
# Copyright (C) 2009 Rocky Bernstein <rocky@gnu.org>
#
# 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.
#
# 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
INCLUDES = -I$(top_srcdir) $(LIBCDIO_CFLAGS) $(LIBISO9660_CFLAGS)
gnu_linux_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
gnu_linux_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
solaris_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
solaris_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
check_PROGRAMS = gnu_linux solaris
TESTS = $(check_PROGRAMS)
MOSTLYCLEANFILES = core core.* *.dump cdda-orig.wav cdda-try.wav *.raw
test: check-am