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

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

Issue 1604203002: Add a library suitable for libfuzzer with a small unit test runner shell (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 10 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
« no previous file with comments | « test/fuzzer/testcfg.py ('k') | tools/testrunner/local/execution.py » ('j') | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 # Base dir of the v8 checkout to be used as cwd. 54 # Base dir of the v8 checkout to be used as cwd.
55 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 55 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
56 56
57 ARCH_GUESS = utils.DefaultArch() 57 ARCH_GUESS = utils.DefaultArch()
58 58
59 # Map of test name synonyms to lists of test suites. Should be ordered by 59 # Map of test name synonyms to lists of test suites. Should be ordered by
60 # expected runtimes (suites with slow test cases first). These groups are 60 # expected runtimes (suites with slow test cases first). These groups are
61 # invoked in seperate steps on the bots. 61 # invoked in seperate steps on the bots.
62 TEST_MAP = { 62 TEST_MAP = {
63 # This needs to stay in sync with test/bot_default.isolate.
63 "bot_default": [ 64 "bot_default": [
64 "mjsunit", 65 "mjsunit",
65 "cctest", 66 "cctest",
66 "webkit", 67 "webkit",
68 "fuzzer",
67 "message", 69 "message",
68 "preparser", 70 "preparser",
69 "intl", 71 "intl",
70 "unittests", 72 "unittests",
71 ], 73 ],
74 # This needs to stay in sync with test/default.isolate.
72 "default": [ 75 "default": [
73 "mjsunit", 76 "mjsunit",
74 "cctest", 77 "cctest",
78 "fuzzer",
75 "message", 79 "message",
76 "preparser", 80 "preparser",
77 "intl", 81 "intl",
78 "unittests", 82 "unittests",
79 ], 83 ],
84 # This needs to stay in sync with test/ignition.isolate.
80 "ignition": [ 85 "ignition": [
81 "mjsunit", 86 "mjsunit",
82 "cctest", 87 "cctest",
83 ], 88 ],
89 # This needs to stay in sync with test/optimize_for_size.isolate.
84 "optimize_for_size": [ 90 "optimize_for_size": [
85 "mjsunit", 91 "mjsunit",
86 "cctest", 92 "cctest",
87 "webkit", 93 "webkit",
88 "intl", 94 "intl",
89 ], 95 ],
90 "unittests": [ 96 "unittests": [
91 "unittests", 97 "unittests",
92 ], 98 ],
93 } 99 }
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 if exit_code == 1 and options.json_test_results: 813 if exit_code == 1 and options.json_test_results:
808 print("Force exit code 0 after failures. Json test results file generated " 814 print("Force exit code 0 after failures. Json test results file generated "
809 "with failure information.") 815 "with failure information.")
810 exit_code = 0 816 exit_code = 0
811 817
812 return exit_code 818 return exit_code
813 819
814 820
815 if __name__ == "__main__": 821 if __name__ == "__main__":
816 sys.exit(Main()) 822 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/fuzzer/testcfg.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698