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

Side by Side Diff: build/android/run_tests.py

Issue 11649008: Reorganize Android's test scripts into packages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « build/android/run_monkey_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
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 """Runs all the native unit tests. 7 """Runs all the native unit tests.
8 8
9 1. Copy over test binary to /data/local on device. 9 1. Copy over test binary to /data/local on device.
10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) 10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 import os 42 import os
43 import signal 43 import signal
44 import subprocess 44 import subprocess
45 import sys 45 import sys
46 import time 46 import time
47 47
48 import emulator 48 import emulator
49 from pylib import android_commands 49 from pylib import android_commands
50 from pylib import buildbot_report 50 from pylib import buildbot_report
51 from pylib import cmd_helper 51 from pylib import cmd_helper
52 from pylib import debug_info
53 from pylib import ports 52 from pylib import ports
54 from pylib.base_test_sharder import BaseTestSharder 53 from pylib.base_test_sharder import BaseTestSharder
55 from pylib.single_test_runner import SingleTestRunner 54 from pylib.gtest import debug_info
55 from pylib.gtest.single_test_runner import SingleTestRunner
56 from pylib.utils import run_tests_helper 56 from pylib.utils import run_tests_helper
57 from pylib.utils import test_options_parser 57 from pylib.utils import test_options_parser
58 from pylib.utils import time_profile 58 from pylib.utils import time_profile
59 from pylib.utils import xvfb 59 from pylib.utils import xvfb
60 60
61 61
62 _TEST_SUITES = ['base_unittests', 62 _TEST_SUITES = ['base_unittests',
63 'cc_unittests', 63 'cc_unittests',
64 'content_unittests', 64 'content_unittests',
65 'gpu_unittests', 65 'gpu_unittests',
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 # the batch (this happens because the exit status is a sum of all failures 367 # the batch (this happens because the exit status is a sum of all failures
368 # from all suites, but the buildbot associates the exit status only with the 368 # from all suites, but the buildbot associates the exit status only with the
369 # most recent step). 369 # most recent step).
370 if options.exit_code: 370 if options.exit_code:
371 return failed_tests_count 371 return failed_tests_count
372 return 0 372 return 0
373 373
374 374
375 if __name__ == '__main__': 375 if __name__ == '__main__':
376 sys.exit(main(sys.argv)) 376 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/run_monkey_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698