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

Side by Side Diff: tools/testrunner/local/statusfile.py

Issue 1804003002: [Ignition] Test ignition on all bots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 7 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 | « tools/run-tests.py ('k') | tools/testrunner/local/testsuite.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 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 18 matching lines...) Expand all
29 29
30 # These outcomes can occur in a TestCase's outcomes list: 30 # These outcomes can occur in a TestCase's outcomes list:
31 SKIP = "SKIP" 31 SKIP = "SKIP"
32 FAIL = "FAIL" 32 FAIL = "FAIL"
33 PASS = "PASS" 33 PASS = "PASS"
34 OKAY = "OKAY" 34 OKAY = "OKAY"
35 TIMEOUT = "TIMEOUT" 35 TIMEOUT = "TIMEOUT"
36 CRASH = "CRASH" 36 CRASH = "CRASH"
37 SLOW = "SLOW" 37 SLOW = "SLOW"
38 FAST_VARIANTS = "FAST_VARIANTS" 38 FAST_VARIANTS = "FAST_VARIANTS"
39 NO_IGNITION = "NO_IGNITION"
39 NO_VARIANTS = "NO_VARIANTS" 40 NO_VARIANTS = "NO_VARIANTS"
40 # These are just for the status files and are mapped below in DEFS: 41 # These are just for the status files and are mapped below in DEFS:
41 FAIL_OK = "FAIL_OK" 42 FAIL_OK = "FAIL_OK"
42 PASS_OR_FAIL = "PASS_OR_FAIL" 43 PASS_OR_FAIL = "PASS_OR_FAIL"
43 FAIL_SLOPPY = "FAIL_SLOPPY" 44 FAIL_SLOPPY = "FAIL_SLOPPY"
44 45
45 ALWAYS = "ALWAYS" 46 ALWAYS = "ALWAYS"
46 47
47 KEYWORDS = {} 48 KEYWORDS = {}
48 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FAIL_OK, 49 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FAIL_OK,
49 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, ALWAYS]: 50 FAST_VARIANTS, NO_IGNITION, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY,
51 ALWAYS]:
50 KEYWORDS[key] = key 52 KEYWORDS[key] = key
51 53
52 DEFS = {FAIL_OK: [FAIL, OKAY], 54 DEFS = {FAIL_OK: [FAIL, OKAY],
53 PASS_OR_FAIL: [PASS, FAIL]} 55 PASS_OR_FAIL: [PASS, FAIL]}
54 56
55 # Support arches, modes to be written as keywords instead of strings. 57 # Support arches, modes to be written as keywords instead of strings.
56 VARIABLES = {ALWAYS: True} 58 VARIABLES = {ALWAYS: True}
57 for var in ["debug", "release", "big", "little", 59 for var in ["debug", "release", "big", "little",
58 "android_arm", "android_arm64", "android_ia32", "android_x87", 60 "android_arm", "android_arm64", "android_ia32", "android_x87",
59 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64", 61 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64",
60 "mips64el", "x64", "x87", "nacl_ia32", "nacl_x64", "ppc", "ppc64", 62 "mips64el", "x64", "x87", "nacl_ia32", "nacl_x64", "ppc", "ppc64",
61 "s390", "s390x", "macos", "windows", "linux", "aix"]: 63 "s390", "s390x", "macos", "windows", "linux", "aix"]:
62 VARIABLES[var] = var 64 VARIABLES[var] = var
63 65
64 66
65 def DoSkip(outcomes): 67 def DoSkip(outcomes):
66 return SKIP in outcomes 68 return SKIP in outcomes
67 69
68 70
69 def IsSlow(outcomes): 71 def IsSlow(outcomes):
70 return SLOW in outcomes 72 return SLOW in outcomes
71 73
72 74
75 def NoIgnitionVariant(outcomes):
76 return NO_IGNITION in outcomes
77
78
73 def OnlyStandardVariant(outcomes): 79 def OnlyStandardVariant(outcomes):
74 return NO_VARIANTS in outcomes 80 return NO_VARIANTS in outcomes
75 81
76 82
77 def OnlyFastVariants(outcomes): 83 def OnlyFastVariants(outcomes):
78 return FAST_VARIANTS in outcomes 84 return FAST_VARIANTS in outcomes
79 85
80 86
81 def IsPassOrFail(outcomes): 87 def IsPassOrFail(outcomes):
82 return ((PASS in outcomes) and (FAIL in outcomes) and 88 return ((PASS in outcomes) and (FAIL in outcomes) and
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 for rule in section: 172 for rule in section:
167 _assert(type(rule) == str, "Rule key must be a string") 173 _assert(type(rule) == str, "Rule key must be a string")
168 _assert(not rule.startswith(root_prefix), 174 _assert(not rule.startswith(root_prefix),
169 "Suite name prefix must not be used in rule keys") 175 "Suite name prefix must not be used in rule keys")
170 _assert(not rule.endswith('.js'), 176 _assert(not rule.endswith('.js'),
171 ".js extension must not be used in rule keys.") 177 ".js extension must not be used in rule keys.")
172 return status["success"] 178 return status["success"]
173 except Exception as e: 179 except Exception as e:
174 print e 180 print e
175 return False 181 return False
OLDNEW
« no previous file with comments | « tools/run-tests.py ('k') | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698