| 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 KEYWORDS[key] = key | 52 KEYWORDS[key] = key |
| 53 | 53 |
| 54 DEFS = {FAIL_OK: [FAIL, OKAY], | 54 DEFS = {FAIL_OK: [FAIL, OKAY], |
| 55 PASS_OR_FAIL: [PASS, FAIL]} | 55 PASS_OR_FAIL: [PASS, FAIL]} |
| 56 | 56 |
| 57 # Support arches, modes to be written as keywords instead of strings. | 57 # Support arches, modes to be written as keywords instead of strings. |
| 58 VARIABLES = {ALWAYS: True} | 58 VARIABLES = {ALWAYS: True} |
| 59 for var in ["debug", "release", "big", "little", | 59 for var in ["debug", "release", "big", "little", |
| 60 "android_arm", "android_arm64", "android_ia32", "android_x87", | 60 "android_arm", "android_arm64", "android_ia32", "android_x87", |
| 61 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64", | 61 "android_x64", "arm", "arm64", "ia32", "mips", "mipsel", "mips64", |
| 62 "mips64el", "x64", "x87", "nacl_ia32", "nacl_x64", "ppc", "ppc64", | 62 "mips64el", "x64", "x87", "ppc", "ppc64", "s390", "s390x", "macos", |
| 63 "s390", "s390x", "macos", "windows", "linux", "aix"]: | 63 "windows", "linux", "aix"]: |
| 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 | 68 return SKIP in outcomes |
| 69 | 69 |
| 70 | 70 |
| 71 def IsSlow(outcomes): | 71 def IsSlow(outcomes): |
| 72 return SLOW in outcomes | 72 return SLOW in outcomes |
| 73 | 73 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 for rule in section: | 172 for rule in section: |
| 173 _assert(type(rule) == str, "Rule key must be a string") | 173 _assert(type(rule) == str, "Rule key must be a string") |
| 174 _assert(not rule.startswith(root_prefix), | 174 _assert(not rule.startswith(root_prefix), |
| 175 "Suite name prefix must not be used in rule keys") | 175 "Suite name prefix must not be used in rule keys") |
| 176 _assert(not rule.endswith('.js'), | 176 _assert(not rule.endswith('.js'), |
| 177 ".js extension must not be used in rule keys.") | 177 ".js extension must not be used in rule keys.") |
| 178 return status["success"] | 178 return status["success"] |
| 179 except Exception as e: | 179 except Exception as e: |
| 180 print e | 180 print e |
| 181 return False | 181 return False |
| OLD | NEW |