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

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

Issue 2228853002: [test] Fully deprecate NO_IGNITION directive. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-test-variants-4
Patch Set: Created 4 years, 4 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/webkit/webkit.status ('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 22 matching lines...) Expand all
33 33
34 # These outcomes can occur in a TestCase's outcomes list: 34 # These outcomes can occur in a TestCase's outcomes list:
35 SKIP = "SKIP" 35 SKIP = "SKIP"
36 FAIL = "FAIL" 36 FAIL = "FAIL"
37 PASS = "PASS" 37 PASS = "PASS"
38 OKAY = "OKAY" 38 OKAY = "OKAY"
39 TIMEOUT = "TIMEOUT" 39 TIMEOUT = "TIMEOUT"
40 CRASH = "CRASH" 40 CRASH = "CRASH"
41 SLOW = "SLOW" 41 SLOW = "SLOW"
42 FAST_VARIANTS = "FAST_VARIANTS" 42 FAST_VARIANTS = "FAST_VARIANTS"
43 NO_IGNITION = "NO_IGNITION"
44 NO_VARIANTS = "NO_VARIANTS" 43 NO_VARIANTS = "NO_VARIANTS"
45 # These are just for the status files and are mapped below in DEFS: 44 # These are just for the status files and are mapped below in DEFS:
46 FAIL_OK = "FAIL_OK" 45 FAIL_OK = "FAIL_OK"
47 PASS_OR_FAIL = "PASS_OR_FAIL" 46 PASS_OR_FAIL = "PASS_OR_FAIL"
48 FAIL_SLOPPY = "FAIL_SLOPPY" 47 FAIL_SLOPPY = "FAIL_SLOPPY"
49 48
50 ALWAYS = "ALWAYS" 49 ALWAYS = "ALWAYS"
51 50
52 KEYWORDS = {} 51 KEYWORDS = {}
53 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FAIL_OK, 52 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FAIL_OK,
54 FAST_VARIANTS, NO_IGNITION, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, 53 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, ALWAYS]:
55 ALWAYS]:
56 KEYWORDS[key] = key 54 KEYWORDS[key] = key
57 55
58 DEFS = {FAIL_OK: [FAIL, OKAY], 56 DEFS = {FAIL_OK: [FAIL, OKAY],
59 PASS_OR_FAIL: [PASS, FAIL]} 57 PASS_OR_FAIL: [PASS, FAIL]}
60 58
61 # Support arches, modes to be written as keywords instead of strings. 59 # Support arches, modes to be written as keywords instead of strings.
62 VARIABLES = {ALWAYS: True} 60 VARIABLES = {ALWAYS: True}
63 for var in ["debug", "release", "big", "little", 61 for var in ["debug", "release", "big", "little",
64 "android_arm", "android_arm64", "android_ia32", "android_x87", 62 "android_arm", "android_arm64", "android_ia32", "android_x87",
65 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64", 63 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64",
66 "mips64el", "x64", "x87", "ppc", "ppc64", "s390", "s390x", "macos", 64 "mips64el", "x64", "x87", "ppc", "ppc64", "s390", "s390x", "macos",
67 "windows", "linux", "aix"]: 65 "windows", "linux", "aix"]:
68 VARIABLES[var] = var 66 VARIABLES[var] = var
69 67
70 # Allow using variants as keywords. 68 # Allow using variants as keywords.
71 for var in ALL_VARIANTS: 69 for var in ALL_VARIANTS:
72 VARIABLES[var] = var 70 VARIABLES[var] = var
73 71
74 72
75 def DoSkip(outcomes): 73 def DoSkip(outcomes):
76 return SKIP in outcomes 74 return SKIP in outcomes
77 75
78 76
79 def IsSlow(outcomes): 77 def IsSlow(outcomes):
80 return SLOW in outcomes 78 return SLOW in outcomes
81 79
82 80
83 def NoIgnitionVariant(outcomes):
84 return NO_IGNITION in outcomes
85
86
87 def OnlyStandardVariant(outcomes): 81 def OnlyStandardVariant(outcomes):
88 return NO_VARIANTS in outcomes 82 return NO_VARIANTS in outcomes
89 83
90 84
91 def OnlyFastVariants(outcomes): 85 def OnlyFastVariants(outcomes):
92 return FAST_VARIANTS in outcomes 86 return FAST_VARIANTS in outcomes
93 87
94 88
95 def IsPassOrFail(outcomes): 89 def IsPassOrFail(outcomes):
96 return ((PASS in outcomes) and (FAIL in outcomes) and 90 return ((PASS in outcomes) and (FAIL in outcomes) and
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 for rule in section: 252 for rule in section:
259 _assert(type(rule) == str, "Rule key must be a string") 253 _assert(type(rule) == str, "Rule key must be a string")
260 _assert(not rule.startswith(root_prefix), 254 _assert(not rule.startswith(root_prefix),
261 "Suite name prefix must not be used in rule keys") 255 "Suite name prefix must not be used in rule keys")
262 _assert(not rule.endswith('.js'), 256 _assert(not rule.endswith('.js'),
263 ".js extension must not be used in rule keys.") 257 ".js extension must not be used in rule keys.")
264 return status["success"] 258 return status["success"]
265 except Exception as e: 259 except Exception as e:
266 print e 260 print e
267 return False 261 return False
OLDNEW
« no previous file with comments | « test/webkit/webkit.status ('k') | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698