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

Side by Side Diff: tools/run-tests.py

Issue 615393002: Move unit tests to test/unittests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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 | « tools/presubmit.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 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 from testrunner.local import execution 44 from testrunner.local import execution
45 from testrunner.local import progress 45 from testrunner.local import progress
46 from testrunner.local import testsuite 46 from testrunner.local import testsuite
47 from testrunner.local import utils 47 from testrunner.local import utils
48 from testrunner.local import verbose 48 from testrunner.local import verbose
49 from testrunner.network import network_execution 49 from testrunner.network import network_execution
50 from testrunner.objects import context 50 from testrunner.objects import context
51 51
52 52
53 ARCH_GUESS = utils.DefaultArch() 53 ARCH_GUESS = utils.DefaultArch()
54 DEFAULT_TESTS = ["mjsunit", "fuzz-natives", "base-unittests", 54 DEFAULT_TESTS = ["mjsunit", "fuzz-natives", "unittests",
55 "cctest", "compiler-unittests", "heap-unittests", 55 "cctest", "message", "preparser"]
56 "libplatform-unittests", "message", "preparser"]
57 56
58 # Map of test name synonyms to lists of test suites. Should be ordered by 57 # Map of test name synonyms to lists of test suites. Should be ordered by
59 # expected runtimes (suites with slow test cases first). These groups are 58 # expected runtimes (suites with slow test cases first). These groups are
60 # invoked in seperate steps on the bots. 59 # invoked in seperate steps on the bots.
61 TEST_MAP = { 60 TEST_MAP = {
62 "default": [ 61 "default": [
63 "mjsunit", 62 "mjsunit",
64 "fuzz-natives", 63 "fuzz-natives",
65 "cctest", 64 "cctest",
66 "message", 65 "message",
67 "preparser", 66 "preparser",
68 ], 67 ],
69 "optimize_for_size": [ 68 "optimize_for_size": [
70 "mjsunit", 69 "mjsunit",
71 "cctest", 70 "cctest",
72 "webkit", 71 "webkit",
73 ], 72 ],
74 "unittests": [ 73 "unittests": [
75 "compiler-unittests", 74 "unittests",
76 "heap-unittests",
77 "base-unittests",
78 "libplatform-unittests",
79 ], 75 ],
80 } 76 }
81 77
82 TIMEOUT_DEFAULT = 60 78 TIMEOUT_DEFAULT = 60
83 TIMEOUT_SCALEFACTOR = {"debug" : 4, 79 TIMEOUT_SCALEFACTOR = {"debug" : 4,
84 "release" : 1 } 80 "release" : 1 }
85 81
86 # Use this to run several variants of the tests. 82 # Use this to run several variants of the tests.
87 VARIANT_FLAGS = { 83 VARIANT_FLAGS = {
88 "default": [], 84 "default": [],
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 exit_code = runner.Run(options.j) 573 exit_code = runner.Run(options.j)
578 overall_duration = time.time() - start_time 574 overall_duration = time.time() - start_time
579 575
580 if options.time: 576 if options.time:
581 verbose.PrintTestDurations(suites, overall_duration) 577 verbose.PrintTestDurations(suites, overall_duration)
582 return exit_code 578 return exit_code
583 579
584 580
585 if __name__ == "__main__": 581 if __name__ == "__main__":
586 sys.exit(Main()) 582 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/presubmit.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698