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

Side by Side Diff: Tools/Scripts/webkitpy/bindings/main.py

Issue 16296004: JSON export/import in generate-bindings.pl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised again Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions 4 # modification, are permitted provided that the following conditions
5 # are met: 5 # are met:
6 # 1. Redistributions of source code must retain the above copyright 6 # 1. Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # 2. Redistributions in binary form must reproduce the above copyright 8 # 2. Redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the 9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution. 10 # documentation and/or other materials provided with the distribution.
(...skipping 24 matching lines...) Expand all
35 class BindingsTests: 35 class BindingsTests:
36 36
37 def __init__(self, reset_results, executive): 37 def __init__(self, reset_results, executive):
38 self.reset_results = reset_results 38 self.reset_results = reset_results
39 self.executive = executive 39 self.executive = executive
40 40
41 def generate_from_idl(self, idl_file, output_directory, supplemental_depende ncy_file): 41 def generate_from_idl(self, idl_file, output_directory, supplemental_depende ncy_file):
42 cmd = ['perl', '-w', 42 cmd = ['perl', '-w',
43 '-Ibindings/scripts', 43 '-Ibindings/scripts',
44 '-Icore/scripts', 44 '-Icore/scripts',
45 '-I../../JSON/out/lib/perl5',
45 'bindings/scripts/generate-bindings.pl', 46 'bindings/scripts/generate-bindings.pl',
46 # idl include directories (path relative to generate-bindings.pl) 47 # idl include directories (path relative to generate-bindings.pl)
47 '--include', '.', 48 '--include', '.',
48 '--outputDir', output_directory, 49 '--outputDir', output_directory,
49 '--supplementalDependencyFile', supplemental_dependency_file, 50 '--supplementalDependencyFile', supplemental_dependency_file,
50 '--idlAttributesFile', 'bindings/scripts/IDLAttributes.txt', 51 '--idlAttributesFile', 'bindings/scripts/IDLAttributes.txt',
51 idl_file] 52 idl_file]
52 53
53 exit_code = 0 54 exit_code = 0
54 try: 55 try:
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 all_tests_passed = False 163 all_tests_passed = False
163 164
164 os.remove(supplemental_dependency_file) 165 os.remove(supplemental_dependency_file)
165 print '' 166 print ''
166 if all_tests_passed: 167 if all_tests_passed:
167 print 'All tests PASS!' 168 print 'All tests PASS!'
168 return 0 169 return 0
169 else: 170 else:
170 print 'Some tests FAIL! (To update the reference files, execute "run -bindings-tests --reset-results")' 171 print 'Some tests FAIL! (To update the reference files, execute "run -bindings-tests --reset-results")'
171 return -1 172 return -1
OLDNEW
« Source/bindings/scripts/generate-bindings.pl ('K') | « Source/bindings/scripts/generate-bindings.pl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698