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

Side by Side Diff: testing/gmock/run_tests.py

Issue 3427004: clang: update gtest/gmock (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: yakshave Created 10 years, 3 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2008, Google Inc. All rights reserved. 3 # Copyright 2008, Google Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 config, 61 config,
62 'gmock/scons')) 62 'gmock/scons'))
63 63
64 64
65 def _Main(): 65 def _Main():
66 """Runs all tests for Google Mock.""" 66 """Runs all tests for Google Mock."""
67 67
68 options, args = run_tests_util.ParseArgs('gtest') 68 options, args = run_tests_util.ParseArgs('gtest')
69 test_runner = run_tests_util.TestRunner( 69 test_runner = run_tests_util.TestRunner(
70 script_dir=SCRIPT_DIR, 70 script_dir=SCRIPT_DIR,
71 build_dir_var_name='GMOCK_BUILD_DIR',
72 injected_build_dir_finder=GetGmockBuildDir) 71 injected_build_dir_finder=GetGmockBuildDir)
73 tests = test_runner.GetTestsToRun(args, 72 tests = test_runner.GetTestsToRun(args,
74 options.configurations, 73 options.configurations,
75 options.built_configurations) 74 options.built_configurations)
76 if not tests: 75 if not tests:
77 sys.exit(1) # Incorrect parameters given, abort execution. 76 sys.exit(1) # Incorrect parameters given, abort execution.
78 77
79 sys.exit(test_runner.RunTests(tests[0], tests[1])) 78 sys.exit(test_runner.RunTests(tests[0], tests[1]))
80 79
81 if __name__ == '__main__': 80 if __name__ == '__main__':
82 _Main() 81 _Main()
OLDNEW
« no previous file with comments | « testing/gmock/msvc/gmock-spec-builders_test.vcproj ('k') | testing/gmock/scripts/gmock-config.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698