Commit Graph

140 Commits

Author SHA1 Message Date
Thomas Vander Stichele
3462e2ee88 Handle backslashes in name for looking up real path.
Fixes https://thomas.apestaart.org/morituri/trac/ticket/107
2013-01-20 19:21:25 +01:00
Thomas Vander Stichele
dc0a3f9614 fix test after moving templates 2013-01-16 08:54:02 +01:00
Thomas Vander Stichele
0306e022fb fix distcheck 2013-01-13 22:47:09 +01:00
Thomas Vander Stichele
1757a3eb7f fix tests after adding release type to templates 2013-01-13 22:45:53 +01:00
Thomas Vander Stichele
50a1bb02b1 * morituri/common/config.py:
* morituri/rip/cd.py:
	* morituri/test/test_common_config.py:
	  strip model/release too.
2013-01-01 23:00:32 +00:00
Thomas Vander Stichele
197bce97c5 fix test 2012-12-23 09:48:41 +00:00
Thomas Vander Stichele
4647d107a9 * morituri/program/cdparanoia.py:
* morituri/test/test_program_cdparanoia.py:
	  Add a task that can analyze the drive for whether it defeats
	  the audio cache.
	* morituri/result/result.py:
	* morituri/rip/cd.py:
	  Make it possible to store whether a drive defeats audio cache
	  in the result.
	* morituri/rip/drive.py:
	  Add rip drive analyze command to analyze caching of a drive,
	  and store it in the config.
2012-12-04 00:14:42 +00:00
Thomas Vander Stichele
fa3d9d4895 add output from my Plextor 2012-12-03 21:59:46 +00:00
Thomas Vander Stichele
e8c1c855f6 add test output from cdparanoia -A 2012-12-03 21:57:23 +00:00
Thomas Vander Stichele
0a0aadfc30 * morituri/test/test_common_gstreamer.py (added):
* morituri/common/gstreamer.py:
	* morituri/test/Makefile.am:
	  add functions to get versions of gstreamer, gst-python,
	  and element factory plugins.
2012-12-02 21:56:19 +00:00
Thomas Vander Stichele
306e6f2ad7 * morituri/common/cache.py:
* morituri/rip/debug.py:
	* morituri/test/test_common_cache.py:
	  Add rip debug resultcache list to list cached results.
2012-12-02 17:27:15 +00:00
Thomas Vander Stichele
b86febb3b1 pep8 fixes 2012-12-02 16:40:46 +00:00
Thomas Vander Stichele
c634dd0e92 * morituri/common/cache.py (added):
* morituri/test/cache (added):
	* morituri/test/cache/result (added):
	* morituri/test/cache/result/fe105a11.pickle (added):
	* morituri/test/test_common_cache.py (added):
	* morituri/common/Makefile.am:
	* morituri/common/program.py:
	* morituri/test/Makefile.am:
	  Extract ResultCache object into separate file.
2012-12-02 16:38:03 +00:00
Thomas Vander Stichele
638d2bc7a0 add missing tests 2012-12-02 11:11:34 +00:00
Thomas Vander Stichele
1bf9272f18 * morituri/common/config.py (added):
* morituri/test/test_common_config.py (added):
	* morituri/common/Makefile.am:
	* morituri/test/Makefile.am:
	  First stab at adding a configuration file to store
	  drive read offsets.
2012-12-02 11:09:13 +00:00
Thomas Vander Stichele
cba7dbe41a pep8 fixes 2012-11-29 19:54:46 +00:00
Thomas Vander Stichele
31a6bd942a patch by: mustbenice
* morituri/program/cdparanoia.py:
	* morituri/result/result.py:
	* morituri/rip/cd.py:
	* morituri/test/test_program_cdparanoia.py:
	  Get cdparanoia version.
	  Store both cdparanoia and cdrdao versions on rip result.
2012-11-25 22:00:42 +00:00
Thomas Vander Stichele
9b4e653ae4 * morituri/common/common.py:
* morituri/common/program.py:
	* morituri/image/table.py:
	* morituri/rip/cd.py:
	* morituri/test/test_common_common.py:
	* morituri/test/test_image_toc.py:
	  Handle cases where disc_template and track_template are not in
	  the same directory.
2012-11-22 23:20:44 +00:00
Thomas Vander Stichele
d0435dc2ab * morituri/test/test_common_encode.py:
Work around https://bugzilla.gnome.org/show_bug.cgi?id=688625
2012-11-19 20:44:53 +00:00
Thomas Vander Stichele
3dc88a4a28 * morituri/test/common.py:
Make tests log.
2012-11-19 20:44:30 +00:00
Thomas Vander Stichele
fa3a6b76c7 add tests 2012-11-19 09:00:50 +00:00
Thomas Vander Stichele
56f1de4c5c * morituri/image/toc.py:
* morituri/test/test_image_toc.py:
	  Add test for getRealPath.  Fix bug found by it for absolute paths.
2012-11-19 08:50:09 +00:00
Thomas Vander Stichele
76d587185d * morituri/image/table.py:
* morituri/test/test_image_table.py:
	* morituri/test/test_image_toc.py:
	  Increase coverage.
2012-11-18 16:20:21 +00:00
Thomas Vander Stichele
ad1d9cb28a use a logging task runner 2012-11-18 13:04:16 +00:00
Thomas Vander Stichele
6adf75a832 pep8 fixes 2012-11-11 22:45:41 +00:00
Thomas Vander Stichele
e133b9da1b pep8 fixes 2012-11-11 22:30:17 +00:00
Thomas Vander Stichele
4d975b6d26 pep8 fixes 2012-11-11 22:25:24 +00:00
Thomas Vander Stichele
dc01274dd0 pep8 fixes 2012-11-10 22:36:14 +00:00
Thomas Vander Stichele
b9d6807065 pep8 fixes 2012-11-10 22:24:50 +00:00
Thomas Vander Stichele
b6f940c08a remove unused import 2012-11-10 20:27:38 +00:00
Thomas Vander Stichele
f0c66013e3 * morituri/extern/task/gstreamer.py:
* morituri/test/test_common_checksum.py:
	  Protect backslashes in names.  Fixes #89.
2012-08-12 18:25:03 +00:00
Thomas Vander Stichele
1da3c8cdfb * morituri/common/drive.py:
If cdio.get_devices_with_cap finds a single drive, it returns a
	  str instead of a list.  Work around that bug.  Fixes #102.
	* morituri/test/test_common_drive.py (added):
	* morituri/test/Makefile.am:
	  Add test for it.  Caught a bug in my first implementation, too!
2012-08-12 18:03:21 +00:00
Thomas Vander Stichele
e90b24a36e * morituri/test/test_common_program.py:
Remove use of musicbrainz module.
2011-10-28 18:57:54 +00:00
Thomas Vander Stichele
ff8fb84a2f * morituri/test/Makefile.am:
Don't package old musicbrainz test.
2011-10-28 18:54:50 +00:00
Thomas Vander Stichele
2be21bce3c * morituri/test/Makefile.am:
* morituri/test/morituri.release.3451f29c-9bb8-4cc5-bfcc-bd50104b94f8.json (added):
	* morituri/test/test_common_musicbrainzngs.py (added):
	  Add test for previous bug of a release not having a date.
2011-10-28 17:50:18 +00:00
Thomas Vander Stichele
ef69de48ba * morituri/common/Makefile.am:
* morituri/common/musicbrainz.py:
	* morituri/common/program.py:
	* morituri/test/test_common_program.py:
	* morituri/test/Makefile.am:
	* morituri/test/test_common_musicbrainz.py (added):
	* morituri/common/musicbrainz.py (added):
	  Split off musicbrainz-specific code.
2011-10-19 18:00:36 +00:00
Thomas Vander Stichele
6ab37720df * morituri/common/Makefile.am:
* morituri/common/musicbrainz.py:
	* morituri/common/program.py:
	* morituri/test/Makefile.am:
	* morituri/test/test_common_musicbrainz.py (added):
	* morituri/common/musicbrainz.py (added):
	  Split off musicbrainz-specific code.
2011-10-19 18:00:11 +00:00
Thomas Vander Stichele
bf5c1f2c31 * morituri/test/Makefile.am:
Include test .xml responses.
2011-10-17 09:20:52 +00:00
Thomas Vander Stichele
2c27b73d09 * morituri/common/common.py:
Add shrinkPath to write shorter path names.
	* morituri/test/test_common_common.py (added):
	  Add test.
	* morituri/program/cdparanoia.py:
	  Catch ENAMETOOLONG and shrink path.
	* morituri/common/program.py:
	  Update track result's filename if it was shrunk.
	* morituri/rip/cd.py:
	  set the possibly shrunk path on the result.
2011-09-18 15:19:45 +00:00
Thomas Vander Stichele
b467132c01 assert we get metadata 2011-09-04 14:19:56 +00:00
Thomas Vander Stichele
367af25232 * TODO:
Add a note about das capital disc.
	* morituri/test/release.08397059-86c1-463b-8ed0-cd596dbd174f.xml:
	* morituri/test/release.93a6268c-ddf1-4898-bf93-fb862b1c5c5e.xml:
	  Add musicbrainz ws1 results for Das Capital and Ladyhawke.
	* morituri/test/test_common_program.py:
	  Fix typos.
	  Add tests for Ladyhawke and Das Capital duration and parsing.
	* morituri/test/test_image_table.py:
	  Fix according to new algorithm.
	* morituri/test/test_image_toc.py:
	  Get frame length for both cd's.
	* morituri/image/table.py:
	  Add getFrameLength method.  Fix up duration.
2011-08-14 14:19:50 +00:00
Thomas Vander Stichele
d43860bdfb * morituri/test/release.c7d919f4-3ea0-4c4b-a230-b3605f069440.xml:
Add release data for Bettie Serveert, Lamprey
	* morituri/test/test_common_program.py:
	  Add a test for parsing and getting the whole duration.
	* morituri/common/common.py:
	  Add a method to format time.
	* morituri/common/program.py:
	  Add duration to tracks and release metadatas.
	  When there are multiple matches, look up the closest in duration.
	  Make sure that multiple matches closest in duration contain same
	  artist and title.
	  Complain about the other ones.
	* morituri/image/table.py:
	  Add a method to calculate a duration from the table.
	* morituri/test/test_image_table.py:
	  Add a test for it.
2011-08-14 12:18:51 +00:00
Thomas Vander Stichele
8ec7bcbb9d * morituri/common/checksum.py:
* morituri/common/common.py:
	* morituri/common/encode.py:
	* morituri/image/image.py:
	* morituri/test/test_common_encode.py:
	  Moved quoteParse.
2011-08-05 19:18:10 +00:00
Thomas Vander Stichele
798a209195 * morituri/extern/task (added):
* morituri/extern/task/taskgtk.py (added):
	* morituri/extern/task/gstreamer.py (added):
	* morituri/extern/task/task.py (added):
	* morituri/common/taskgtk.py (deleted):
	* morituri/common/gstreamer.py (deleted):
	* morituri/common/task.py (deleted):
	  Move task-related modules into an extern directory so other
	  projects can use them.
	* morituri/common/checksum.py:
	* morituri/common/encode.py:
	* morituri/image/image.py:
	* morituri/program/cdparanoia.py:
	* morituri/program/cdrdao.py:
	* morituri/rip/cd.py:
	* morituri/rip/debug.py:
	* morituri/rip/image.py:
	* morituri/rip/main.py:
	* morituri/rip/offset.py:
	* morituri/test/test_common_checksum.py:
	* morituri/test/test_common_encode.py:
	* morituri/test/test_image_image.py:
	  Adapt.  Tests work.
2011-08-05 18:50:51 +00:00
Thomas Vander Stichele
c783e19605 * morituri/test/test_common_program.py:
Add a test for the template in #66.
2011-05-30 18:29:37 +00:00
Thomas Vander Stichele
02f5012453 * morituri/test/test_common_program.py:
Add tests for naming of disc output location.
2011-05-30 18:03:00 +00:00
Thomas Vander Stichele
3a42598fa5 * morituri/test/test_common_encode.py:
Use pink-noise as a wave form to make sure it's long enough.
	  Fixes last tests for F-15.
2011-05-24 16:09:14 +00:00
Thomas Vander Stichele
e604240ae6 * morituri/test/test_common_encode.py:
Write a non-sine wave so we have an actual flac file that will
	  typefind.
2011-05-24 10:42:25 +00:00
Thomas Vander Stichele
8771d439dc * morituri/common/gstreamer.py:
Add a cvar to stop going to playing.
	* morituri/image/image.py:
	  Convert AudioLengthTask to GstPipelineTask.
	* morituri/test/test_image_image.py:
	  Adapt to new typefind error we run in.
2011-05-24 10:27:06 +00:00
Thomas Vander Stichele
1ce46272a9 * morituri/test/test_common_encode.py:
Generate an actual file by spawning gst-launch; otherwise
	  with proper error handling we get an error from wavparse that
	  there is not enough data to typefind.
	* morituri/common/gstreamer.py:
	  Move the gst import to start() and set it as a class attribute.
	  Document methods.
	* morituri/common/encode.py:
	  Convert EncodeTask to a GstPipelineTask.
2011-05-23 14:57:16 +00:00