def test(path, workdir=None, logfile=logf, extraopts=[]): dir, file = os.path.split(path) if not workdir: workdir = dir _, outfile = tempfile.mkstemp('', file) tmpfiles.append(outfile) cmdline = cmd + extraopts + ['--output', outfile] return sketch.Test(path, workdir, logfile, cmdline)
def test(t): _, outfile = tempfile.mkstemp('', t) tmpfiles.append(outfile) cmdline = cmd + ['--output', outfile] path = 'regtest/' + t return sketch.Test(path, cwd, logf, cmdline)