verify cdparanoia's output

This commit is contained in:
Thomas Vander Stichele
2009-05-03 14:54:52 +00:00
parent d8e288d848
commit 81eddd26b8
3 changed files with 43 additions and 18 deletions

View File

@@ -27,10 +27,9 @@ import optparse
import gobject
gobject.threads_init()
import gtk
from morituri.image import image
from morituri.common import task, taskgtk, checksum
from morituri.common import task, checksum
from morituri.program import cdrdao, cdparanoia
"""
@@ -41,6 +40,7 @@ from morituri.common import log
log.init()
def gtkmain(runner, taskk):
import gtk
runner.connect('stop', lambda _: gtk.main_quit())
window = gtk.Window()
@@ -112,6 +112,7 @@ def main(argv):
runner = task.SyncRunner()
function = climain
elif options.runner == 'gtk':
from morituri.common import taskgtk
runner = taskgtk.GtkProgressRunner()
function = gtkmain

View File

@@ -3,10 +3,12 @@
import re
import os
import stat
import subprocess
import tempfile
from morituri.common import task, checksum, log
from morituri.image import table
from morituri.program import cdparanoia
import gobject
@@ -21,7 +23,12 @@ def main():
fd, path = tempfile.mkstemp(suffix='.morituri')
os.close(fd)
t = cdparanoia.ReadTrackTask(path, 1000, 3000, offset=0)
fakeTable = table.Table([
table.Track( 1, 0, 15536),
])
t = cdparanoia.ReadTrackTask(path, fakeTable, 1000, 3000, offset=0)
if i == 1:
t.description = 'Verifying track...'