33 """Allow other scripts to call this script with fake command-line args.
35 @param The commandline argument list
37 parser = optparse.OptionParser(USAGE_STRING %
'%prog' + HELP_STRING)
38 parser.add_option(
'--render_dir', dest=
'render_dir',
39 help = (
'specify the location to output the rendered '
40 'files. Default is a temp directory.'))
41 parser.add_option(
'--diff_dir', dest=
'diff_dir',
42 help = (
'specify the location to output the diff files. '
43 'Default is a temp directory.'))
45 options, arguments = parser.parse_args(args)
47 if (len(arguments) < 3):
48 print(
"Expected at least one input and one ouput folder.")
52 inputs = arguments[1:-1]
53 expected_dir = arguments[-1]
55 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir,
56 options.diff_dir,
'render_pdfs',
'')