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