Remove more warnings. test/testnrg.c.in -> test/driver/nrg.c.in
This commit is contained in:
@@ -30,7 +30,7 @@ endif
|
||||
|
||||
hack = check_sizeof testassert testgetdevices testischar \
|
||||
testisocd testisocd2 testiso9660 test_lib_driver_util \
|
||||
testnrg $(testparanoia) testtoc testpregap
|
||||
$(testparanoia) testtoc testpregap
|
||||
|
||||
EXTRA_PROGRAMS = testdefault
|
||||
DATA_DIR = @abs_top_srcdir@/test/data
|
||||
@@ -57,9 +57,6 @@ test_lib_driver_util_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
testpregap_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
testpregap_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
testnrg_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
testnrg_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
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
|
||||
@@ -83,7 +80,7 @@ check_DATA = vcd_demo.right vcd_demo_vcdinfo.right \
|
||||
|
||||
EXTRA_DIST = $(check_SCRIPTS) $(check_DATA) \
|
||||
check_common_fn check_cue.sh.in check_nrg.sh.in \
|
||||
testpregap.c.in testnrg.c.in \
|
||||
testpregap.c.in \
|
||||
testgetdevices.c.in check_iso.sh.in
|
||||
|
||||
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
||||
|
||||
@@ -31,6 +31,9 @@ gnu_linux_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
mmc_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
mmc_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
nrg_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
nrg_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
osx_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
osx_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
@@ -40,14 +43,19 @@ solaris_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
win32_LDADD = $(LIBCDIO_LIBS) $(LTLIBICONV)
|
||||
win32_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"
|
||||
|
||||
hack = bincue freebsd gnu_linux mmc osx realpath solaris win32
|
||||
check_PROGRAMS = $(hack)
|
||||
check_PROGRAMS = \
|
||||
bincue freebsd gnu_linux mmc nrg \
|
||||
osx realpath solaris win32
|
||||
|
||||
TESTS = $(check_PROGRAMS)
|
||||
|
||||
EXTRA_DIST = bincue.c.in
|
||||
EXTRA_DIST = \
|
||||
bincue.c.in \
|
||||
nrg.c.in
|
||||
|
||||
MOSTLYCLEANFILES = core core.* *.dump cdda-orig.wav cdda-try.wav *.raw
|
||||
MOSTLYCLEANFILES = \
|
||||
$(check_PROGRAMS) \
|
||||
core core.* *.dump cdda-orig.wav cdda-try.wav *.raw
|
||||
|
||||
test: check-am
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
Regression test for BIN/CUE device driver.
|
||||
Regression test for BIN/CUE device driver: lib/driver/image/bincue.c.
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
@@ -146,7 +146,6 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
const char *psz_source = cdio_get_arg(p_cdio, "source");
|
||||
const char *psz_device = cdio_get_default_device(p_cdio);
|
||||
@@ -155,7 +154,7 @@ main(int argc, const char *argv[])
|
||||
fprintf(stderr,
|
||||
"cdio_get_arg(\"source\") should return \"%s\"; got: \"%s\".\n",
|
||||
psz_source, psz_device);
|
||||
exit(4);
|
||||
exit(5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
Regression test for BIN/CUE device driver.
|
||||
Regression test for BIN/CUE device driver: lib/driver/image/bincue.c.
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
@@ -146,7 +146,6 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
const char *psz_source = cdio_get_arg(p_cdio, "source");
|
||||
const char *psz_device = cdio_get_default_device(p_cdio);
|
||||
@@ -155,7 +154,7 @@ main(int argc, const char *argv[])
|
||||
fprintf(stderr,
|
||||
"cdio_get_arg(\"source\") should return \"%s\"; got: \"%s\".\n",
|
||||
psz_source, psz_device);
|
||||
exit(4);
|
||||
exit(5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/* -*- C -*-
|
||||
$Id: testnrg.c.in,v 1.1 2008/03/22 22:43:56 rocky Exp $
|
||||
|
||||
Copyright (C) 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2008, 2010 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
|
||||
@@ -18,15 +16,16 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
Regression test for cdio_nrgfile().
|
||||
Regression test for Nero image driver: lib/driver/image/nrg.c.
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include <cdio/cdio.h>
|
||||
#include <cdio/logging.h>
|
||||
#include <cdio/cdtext.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
@@ -85,6 +84,41 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const char *psz_response = cdio_get_arg(p_cdio, "mmc-supported?");
|
||||
if ( psz_response == NULL ||
|
||||
((0 != strncmp("false", psz_response, sizeof("false")))) ) {
|
||||
fprintf(stderr,
|
||||
"cdio_get_arg(\"mmc-supported?\") should return \"false\"; got: \"%s\".\n",
|
||||
psz_response);
|
||||
exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const char *psz_access_mode = cdio_get_arg(p_cdio, "access-mode");
|
||||
if ( psz_access_mode == NULL ||
|
||||
((0 != strncmp("image", psz_access_mode, sizeof("image")))) ) {
|
||||
fprintf(stderr,
|
||||
"cdio_get_arg(\"access-mode?\") should return \"image\"; got: \"%s\".\n",
|
||||
psz_access_mode);
|
||||
exit(4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
const char *psz_source = cdio_get_arg(p_cdio, "source");
|
||||
if ( psz_source == NULL ||
|
||||
(0 != strcmp(psz_nrgfile, psz_source)) ) {
|
||||
fprintf(stderr,
|
||||
"cdio_get_arg(\"source\") should return \"%s\"; got: \"%s\".\n",
|
||||
psz_source, psz_nrgfile);
|
||||
exit(4);
|
||||
}
|
||||
}
|
||||
|
||||
cdio_destroy(p_cdio);
|
||||
|
||||
return 0;
|
||||
Reference in New Issue
Block a user