| 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 22 matching lines...) Expand all Loading... |
| 33 OKAY = "OKAY" | 33 OKAY = "OKAY" |
| 34 TIMEOUT = "TIMEOUT" | 34 TIMEOUT = "TIMEOUT" |
| 35 CRASH = "CRASH" | 35 CRASH = "CRASH" |
| 36 SLOW = "SLOW" | 36 SLOW = "SLOW" |
| 37 FLAKY = "FLAKY" | 37 FLAKY = "FLAKY" |
| 38 FAST_VARIANTS = "FAST_VARIANTS" | 38 FAST_VARIANTS = "FAST_VARIANTS" |
| 39 NO_VARIANTS = "NO_VARIANTS" | 39 NO_VARIANTS = "NO_VARIANTS" |
| 40 # These are just for the status files and are mapped below in DEFS: | 40 # These are just for the status files and are mapped below in DEFS: |
| 41 FAIL_OK = "FAIL_OK" | 41 FAIL_OK = "FAIL_OK" |
| 42 PASS_OR_FAIL = "PASS_OR_FAIL" | 42 PASS_OR_FAIL = "PASS_OR_FAIL" |
| 43 FAIL_SLOPPY = "FAIL_SLOPPY" |
| 43 | 44 |
| 44 ALWAYS = "ALWAYS" | 45 ALWAYS = "ALWAYS" |
| 45 | 46 |
| 46 KEYWORDS = {} | 47 KEYWORDS = {} |
| 47 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FLAKY, FAIL_OK, | 48 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FLAKY, FAIL_OK, |
| 48 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, ALWAYS]: | 49 FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, ALWAYS]: |
| 49 KEYWORDS[key] = key | 50 KEYWORDS[key] = key |
| 50 | 51 |
| 51 DEFS = {FAIL_OK: [FAIL, OKAY], | 52 DEFS = {FAIL_OK: [FAIL, OKAY], |
| 52 PASS_OR_FAIL: [PASS, FAIL]} | 53 PASS_OR_FAIL: [PASS, FAIL]} |
| 53 | 54 |
| 54 # Support arches, modes to be written as keywords instead of strings. | 55 # Support arches, modes to be written as keywords instead of strings. |
| 55 VARIABLES = {ALWAYS: True} | 56 VARIABLES = {ALWAYS: True} |
| 56 for var in ["debug", "release", "big", "little", | 57 for var in ["debug", "release", "big", "little", |
| 57 "android_arm", "android_arm64", "android_ia32", "android_x87", | 58 "android_arm", "android_arm64", "android_ia32", "android_x87", |
| 58 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", | 59 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if not eval(section[0], variables): continue | 140 if not eval(section[0], variables): continue |
| 140 section = section[1] | 141 section = section[1] |
| 141 assert type(section) == dict | 142 assert type(section) == dict |
| 142 for rule in section: | 143 for rule in section: |
| 143 assert type(rule) == str | 144 assert type(rule) == str |
| 144 if rule[-1] == '*': | 145 if rule[-1] == '*': |
| 145 _ParseOutcomeList(rule, section[rule], wildcards, variables) | 146 _ParseOutcomeList(rule, section[rule], wildcards, variables) |
| 146 else: | 147 else: |
| 147 _ParseOutcomeList(rule, section[rule], rules, variables) | 148 _ParseOutcomeList(rule, section[rule], rules, variables) |
| 148 return rules, wildcards | 149 return rules, wildcards |
| OLD | NEW |