b5c9b50755
Rename DEBUG_OSX to a more local CDIO_DEBUG_OSX.
...
Add real tests for osx, maybe be useful in a more general way?
Don't return on any test fail, wait until all are done (they're not mutually exclusive).
2012-05-29 22:51:55 +01:00
R. Bernstein
58400f03b9
Add guard around get_mcn for null p_cdio.
2012-04-15 00:49:01 -04:00
rocky
aa0c1cb2a3
test/Makefile.am: test example files, some of which are used in tests, is no longer optional
...
other Makefile.am: remove some cruft.
2012-03-25 20:11:11 -04:00
R. Bernstein
be738cbb2f
Expand driver test framework a little and the tests we do.
2012-03-25 17:18:49 -04:00
R. Bernstein
892ff0522e
Merge branch 'greenleon' of git.sv.gnu.org:/srv/git/libcdio
...
Conflicts:
lib/driver/image/bincue.c
2012-03-10 16:13:58 -05:00
R. Bernstein
abe5b84295
Multilanguage CD-Text from greenleon
2012-03-05 21:22:08 -05:00
Pete Batard
9e4332245a
Fix an "unused but set warning" in bincue test
2012-03-05 23:32:56 +00:00
Pete Batard
0074e54f97
More source headers harmonization
...
* fix missing #ifdefs
* remove spaces and page feeds
* follow same set of rules everywhere, with cdio includes coming
after standard C includes.
2012-03-05 17:58:56 +00:00
R. Bernstein
ebcc891306
More pbatard patches
2012-03-04 14:49:33 -05:00
R. Bernstein
6e4a15636b
Had messed up on pbatard mmc_write.c sleep patch for MinGW
2012-03-03 20:32:59 -05:00
R. Bernstein
e5ac559bcd
Remove a couple of warnings, some of which were removed in the pbatard branch.
2012-03-03 19:41:48 -05:00
R. Bernstein
47f417e5dc
Reinstate nrg test for MinGW.
2012-03-03 16:28:19 -05:00
R. Bernstein
422693a7cd
Change headers as per pbatard branch to make MinGW work out.
2012-03-03 00:26:20 -05:00
rocky
3ef4cde61a
Skip test/driver/nrg until we work out off_t issues
2012-02-26 00:31:49 -05:00
R. Bernstein
734c6473b3
Fix some of the tests for MinGW and fix the use of Sleep/usleep for MinGW & MSVC platforms
...
* Sleep takes ms, not s
* Use sleep/Sleep rather than usleep in the cdchange sample, as usleep
is not available on recent MinGW platforms
From pbatard branch.
2012-02-24 22:03:19 -05:00
rocky
f9bd26cbc2
paranoia code removed. Is now in separate tree under GPL v2+.
...
realpath.c: patch from Debian and N. Boullis
2012-02-19 22:11:14 -05:00
rocky
c742eed87d
Debian POSIXness fix from N. Boullis
2012-02-19 20:06:47 -05:00
R. Bernstein
96bd9a9993
realpath.c(main): Remove duplicate if condition.
2012-01-28 23:31:24 -05:00
R. Bernstein
1841da6de0
Add cdio_dirname which I think should complete what we need. Also add test of abs_path and dirname
2011-12-11 10:24:55 -05:00
R. Bernstein
c242ca3997
Look for a NULL destination buffer in mmc_read_cd and return
...
DRIVER_OP_BAD_POINTER in this particular situation.
2011-11-27 17:47:50 -05:00
R. Bernstein
dbf6d24765
1) cdtext objects are no longer associated with a track but with the disc.
...
2) - cdio_get_cdtext no longer takes track as an argument
- cdtext_get, cdtext_get_const, cdtext_set require track argument
3) Language, Genre, Genre Code and Encoding Fields are now properly parsed and stored in the cdtext object
4) Added public function cdio_get_cdtext_raw to extract the binary CD-Text
5) Added CDTEXTFILE keyword logic in cue sheet parser. Parses binary/raw CD-Text files
6) Added cdtext_genre2str to convert genre code
7) altered the example programs, test drivers, cdda-player and cd-info to work with these changes
8) Added test case
9) A few smaller changes
A disc either holds CD-Text for all the tracks or does not hold any. Therefore a CD-Text object for the whole disc seems more natural to me. It also enables us to store global fields, like genre, encoding, language.
Patch was tested on GNU/Linux 32 bit running Gentoo.
2011-11-24 20:54:40 -05:00
R. Bernstein
e0b2ee826d
Don't error out on handling "NO PRE_EMPHASIS" in cdrdao TOC.
...
Savannah bug #34826 :
2011-11-16 20:36:22 -05:00
R. Bernstein
f215cad224
Make sure config.h or the copy of that gets included only once to reduce duplicate include
...
warnings.
2011-10-20 19:44:10 -04:00
R. Bernstein
c10bee26b6
mmc_util.{c,h} Break simpler non-dependent mmc helper or utility routines from mmc.{c,h}
2010-02-22 15:18:59 -05:00
R. Bernstein
ff49db8449
Move another routine from mmc.c into mmc_hl_cmds.c
2010-02-11 06:35:22 -05:00
R. Bernstein
74762179d2
Fix Minor test bug
2010-02-11 05:22:15 -05:00
R. Bernstein
fe85ad4ca9
Go over for coding and code style.
2010-02-11 05:04:39 -05:00
R. Bernstein
f362f43593
Small changes
2010-02-10 22:40:57 -05:00
R. Bernstein
7f37476924
Split off MMC tests which don't involve exclusive access from those that do.
2010-02-10 22:30:37 -05:00
R. Bernstein
80304a8cef
Add mmc_read_disc_information. Change get_disctype to use it and thus it
...
moves from mmc.c into mmc_hl_cmds.c. Status is now the return type, not
erasable.
Split mmc_cmds.h into mmc_ll_cmds.h and mmc_hl_cmds.h.
test/driver/mmc.c for invalid page check we get the right sense key,
asc, and ascq.
2010-02-09 22:39:05 -05:00
R. Bernstein
31b8a4e4fd
Test sense key, sense code and additional sense code on invalid page.
2010-02-09 21:30:39 -05:00
R. Bernstein
1f41c50b09
sort libcdio.sym. Remove duplicated tests.
2010-02-09 07:49:52 -05:00
R. Bernstein
cbe5ebacd0
Missing some more externals and a file which needs to go into the distribution tarball.
2010-02-09 03:31:28 -05:00
R. Bernstein
ecff23366e
Use mmc_get_disctype in mmc example.
2010-02-08 19:28:44 -05:00
R. Bernstein
5656a0b14c
Remove duplicate cdio_mmc_disctype_t.
2010-02-08 19:01:14 -05:00
R. Bernstein
100654b51b
Fix all fo the bugs I introduced "improving" the code of others.
...
mmc_ll_cmds.c: mmc_mode_select and mmc_get_configuration now work.
mmc_hl_cmds.c: bug introduced by turning a var into a pointer to that variable.
2010-02-08 16:56:04 -05:00
R. Bernstein
ff23f198d7
glossary.texi: disctype additions/corrections
...
mmc.c: start test of get_disctype, stylisting convention changes.
Warning: mmc_get_configuration and mmc_get_mode_select are broken.
2010-02-08 07:38:42 -05:00
R. Bernstein
2d3b7d28b4
Add SCSI-MMC GET CONFIGURATION.
...
Add Frank Endres' disc type determination via MMC.
Be more careful to suffix with CDIO_MMC which I hope will reduce possible name conflicts.
2010-02-07 21:04:21 -05:00
R. Bernstein
d3a0ba06e1
Move more towards making MMC a library. Start to reorganize more to
...
break out 1-1 SCSI-MMC commands (in mmc_ll_cmds.c) from higher-level
commands which use the lower-level ones.
2010-02-07 18:35:47 -05:00
R. Bernstein
bf7d63b435
Add mcc_test_unit_ready and mmc_mode_select (buggy). Allow for timeouts on
...
mmc commands - more work needed here too.
2010-02-07 07:20:28 -05:00
R. Bernstein
f93e673fd5
lib/driver/mmc.c - DRY code. Warning - might have introduced breakage here
...
*mmc*: mmc_start_stop_media -> mmc_start_stop_unit,
CDIO_MMC_GPCMD_START_STOP -> CDIO_MMC_GPCMD_START_STOP_UNIT
cdio++/mmc.hpp: Regularize Doxygen comment format.
2010-02-06 22:53:03 -05:00
R. Bernstein
1687e2633f
Start to split off specific mmc commands from the lower-level internals.
2010-02-06 11:59:35 -05:00
R. Bernstein
e3d2e21123
glossary.texi, mmc.h: note acronyms SPC-3, MMC-5, SBC-2.
...
glossary.texi: start using texinfo cross references
test/driver/mmc.c: use provided routine for start/stop unit. Warning: might have broken things here.
2010-02-05 13:50:07 -05:00
R. Bernstein
0ae0a2ca8b
Revise with info from dpANS SCSI Primary Commands-3 (SPC-3). Use sense
...
data structure in mmc_last_cmd_sense.
2010-02-05 07:40:31 -05:00
R. Bernstein
34bc1ec0b4
mmc.h: Big endian bytes is not the same as big_endian bitfield
...
mmc.c: more pervasive use of cdio's mmc definitions.
2010-02-04 04:24:43 -05:00
R. Bernstein
e3a5e16cbb
mmc.h: TEST_UNIT_READY MMC command opcode
...
device.h: Add DRIVER_OP_MMC_SENSE to driver_return_code_t.
win32_ioctl.c: work around MS bug where buffer sizes are 0 or 1. Set
return code status if sense data passed back. Translate bad parameter
MS Windows error into a driver_return_code_t error.
test/driver/mmc.c: Reinstate old logic now that the MS Windows driver
has been made to work more like other drivers and copes with some of
the MS Windows causing failure here.
2010-02-03 21:43:05 -05:00
R. Bernstein
c01aa785cd
Comment out some MMC tests which are failing on GNU/Linux where we are *not* getting sense data back but we are getting failures from ioctl(.. CDROM_SEND_PACKET)
2010-02-02 23:03:46 -05:00
R. Bernstein
60b237a161
MS Windows iocontrol SCSI Passthrough fixes. Change test/driver/mmc.c - we
...
can't that when we get sense data, that we also gegt status back that pass through fails.
On MS Windows it doesn't seem to work that way.
2010-02-02 22:15:55 -05:00
R. Bernstein
713951f1b3
Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio
2010-01-31 21:32:44 -05:00
R. Bernstein
5f10331adb
MS Windows driver hacking hopefully to get closer to passing back sense data.
...
For now it seems that some pass-through direct doesn't work while the less-good passthrough does. Sigh.
2010-01-31 21:31:08 -05:00