OLD | NEW |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 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, |
53 PASS_OR_FAIL, ALWAYS]: | 53 PASS_OR_FAIL, ALWAYS]: |
54 KEYWORDS[key] = key | 54 KEYWORDS[key] = key |
55 | 55 |
56 DEFS = {FAIL_OK: [FAIL, OKAY], | 56 DEFS = {FAIL_OK: [FAIL, OKAY], |
57 PASS_OR_FAIL: [PASS, FAIL]} | 57 PASS_OR_FAIL: [PASS, FAIL]} |
58 | 58 |
59 # Support arches, modes to be written as keywords instead of strings. | 59 # Support arches, modes to be written as keywords instead of strings. |
60 VARIABLES = {ALWAYS: True} | 60 VARIABLES = {ALWAYS: True} |
61 for var in ["debug", "release", "android_arm", "android_ia32", "arm", "ia32", | 61 for var in ["debug", "release", "android_arm", "android_ia32", "arm", "ia32", |
62 "mipsel", "x64"]: | 62 "mipsel", "x64", "nacl_ia32", "nacl_x64"]: |
63 VARIABLES[var] = var | 63 VARIABLES[var] = var |
64 | 64 |
65 | 65 |
66 def DoSkip(outcomes): | 66 def DoSkip(outcomes): |
67 return SKIP in outcomes or SLOW in outcomes | 67 return SKIP in outcomes or SLOW in outcomes |
68 | 68 |
69 | 69 |
70 def IsFlaky(outcomes): | 70 def IsFlaky(outcomes): |
71 return ((PASS in outcomes) and (FAIL in outcomes) and | 71 return ((PASS in outcomes) and (FAIL in outcomes) and |
72 (not CRASH in outcomes) and (not OKAY in outcomes)) | 72 (not CRASH in outcomes) and (not OKAY in outcomes)) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 if not eval(section[0], variables): continue | 136 if not eval(section[0], variables): continue |
137 section = section[1] | 137 section = section[1] |
138 assert type(section) == dict | 138 assert type(section) == dict |
139 for rule in section: | 139 for rule in section: |
140 assert type(rule) == str | 140 assert type(rule) == str |
141 if rule[-1] == '*': | 141 if rule[-1] == '*': |
142 _ParseOutcomeList(rule, section[rule], wildcards, variables) | 142 _ParseOutcomeList(rule, section[rule], wildcards, variables) |
143 else: | 143 else: |
144 _ParseOutcomeList(rule, section[rule], rules, variables) | 144 _ParseOutcomeList(rule, section[rule], rules, variables) |
145 return rules, wildcards | 145 return rules, wildcards |
OLD | NEW |