summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests')
-rwxr-xr-xchromium/third_party/WebKit/Tools/Scripts/run-bindings-tests23
1 files changed, 10 insertions, 13 deletions
diff --git a/chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests b/chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests
index bae4bf35cab..1cba1c0c1a0 100755
--- a/chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests
+++ b/chromium/third_party/WebKit/Tools/Scripts/run-bindings-tests
@@ -23,30 +23,27 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# This script generates h and cpp file for TestObj.idl using code
-# generators. Please execute the script whenever changes are made to
-# CodeGeneratorXXXX.pm, and submit the changes in XXXXTestObj.h/cpp in the same
-# patch. This makes it easier to track and review changes in generated code.
-
import sys
-from webkitpy.common.system import executive
+
+from webkitpy.bindings.main import run_bindings_tests
def main(argv):
"""Runs Blink bindings IDL compiler on test IDL files and compares the
results with reference files.
+ Please execute the script whenever changes are made to the compiler
+ (this is automatically done as a presubmit script),
+ and submit changes to the test results in the same patch.
+ This makes it easier to track and review changes in generated code.
+
Options:
--reset-results: Overwrites reference files with the generated results.
- --test-python: Run tests for Python compiler as well.
--verbose: Show output on success and logging messages (not just failure)
"""
- reset_results = "--reset-results" in argv
- test_python = "--test-python" in argv
- verbose = "--verbose" in argv
-
- from webkitpy.bindings.main import BindingsTests
+ reset_results = '--reset-results' in argv
+ verbose = '--verbose' in argv
- return BindingsTests(reset_results, test_python, verbose, executive.Executive()).main()
+ return run_bindings_tests(reset_results, verbose)
if __name__ == '__main__':