Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: tools/test_pictures.py

Issue 135783003: deprecate tools/test_rendering.py and tools/test_pictures.py (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: March -> Feb Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/test_rendering.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ''' 1 '''
2 Copyright 2012 Google Inc. 2 Copyright 2012 Google Inc.
3 3
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 6
7 Compares the rendererings of serialized SkPictures to expected images. 7 Compares the rendererings of serialized SkPictures to expected images.
8 8
9 Launch with --help to see more information. 9 Launch with --help to see more information.
10 10
11 TODO(epoger): Combine with overlapping tools/tests/render_pictures_test.py . 11 TODO(epoger): We believe this tool is no longer used, so we have disabled it
12 and will remove it on 1 Feb 2014 if nobody objects.
12 See https://code.google.com/p/skia/issues/detail?id=1943#c2 13 See https://code.google.com/p/skia/issues/detail?id=1943#c2
13 ''' 14 '''
14 # common Python modules 15 # common Python modules
15 import os 16 import os
16 import optparse 17 import optparse
17 import sys 18 import sys
18 import shutil 19 import shutil
19 import tempfile 20 import tempfile
20 21
21 # modules declared within this same directory 22 # modules declared within this same directory
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 del parser.rargs[:2] 54 del parser.rargs[:2]
54 55
55 setattr(parser.values, option.dest, result) 56 setattr(parser.values, option.dest, result)
56 57
57 58
58 def Main(args): 59 def Main(args):
59 """Allow other scripts to call this script with fake command-line args. 60 """Allow other scripts to call this script with fake command-line args.
60 61
61 @param The commandline argument list 62 @param The commandline argument list
62 """ 63 """
64 print ('We believe this tool is no longer used, so we have disabled it '
65 'and will remove it on 1 Feb 2014 if nobody objects. See '
66 'https://code.google.com/p/skia/issues/detail?id=1943#c2')
67 sys.exit(-1)
68
63 parser = optparse.OptionParser(USAGE_STRING % '%prog' + HELP_STRING) 69 parser = optparse.OptionParser(USAGE_STRING % '%prog' + HELP_STRING)
64 parser.add_option('--render_dir', dest='render_dir', 70 parser.add_option('--render_dir', dest='render_dir',
65 help = ("specify the location to output the rendered files." 71 help = ("specify the location to output the rendered files."
66 " Default is a temp directory.")) 72 " Default is a temp directory."))
67 parser.add_option('--diff_dir', dest='diff_dir', 73 parser.add_option('--diff_dir', dest='diff_dir',
68 help = ("specify the location to output the diff files." 74 help = ("specify the location to output the diff files."
69 " Default is a temp directory.")) 75 " Default is a temp directory."))
70 parser.add_option('--mode', dest='mode', type='string', 76 parser.add_option('--mode', dest='mode', type='string',
71 action="callback", callback=ModeParse, 77 action="callback", callback=ModeParse,
72 help = ("specify how rendering is to be done.")) 78 help = ("specify how rendering is to be done."))
(...skipping 17 matching lines...) Expand all
90 96
91 if (options.device is not None): 97 if (options.device is not None):
92 extra_args += ' --device %s' % options.device 98 extra_args += ' --device %s' % options.device
93 99
94 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir, 100 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir,
95 options.diff_dir, 'render_pictures', 101 options.diff_dir, 'render_pictures',
96 extra_args) 102 extra_args)
97 103
98 if __name__ == '__main__': 104 if __name__ == '__main__':
99 Main(sys.argv) 105 Main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | tools/test_rendering.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698