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