Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import atexit | 6 import atexit |
| 7 import glob | 7 import glob |
| 8 import os | 8 import os |
| 9 import platform | 9 import platform |
| 10 import stat | 10 import stat |
| (...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1284 osenv=osenv, | 1284 osenv=osenv, |
| 1285 extra_deps=extra_deps) | 1285 extra_deps=extra_deps) |
| 1286 | 1286 |
| 1287 pre_base_env.AddMethod(PyAutoTester) | 1287 pre_base_env.AddMethod(PyAutoTester) |
| 1288 | 1288 |
| 1289 | 1289 |
| 1290 # Disabled for ARM (because Chrome binaries for ARM are not available), on the | 1290 # Disabled for ARM (because Chrome binaries for ARM are not available), on the |
| 1291 # Chrome bots (because PyAuto is not expected to be available on them) and when | 1291 # Chrome bots (because PyAuto is not expected to be available on them) and when |
| 1292 # 32-bit test binaries are run on a 64-bit machine (because 32-bit python is not | 1292 # 32-bit test binaries are run on a 64-bit machine (because 32-bit python is not |
| 1293 # available on 64-bit machines). | 1293 # available on 64-bit machines). |
| 1294 # However, Macs will have 32-bit versions of Python 2.5, so we should be OK. | |
|
Mark Seaborn
2011/07/26 23:38:47
Are you sure this will actually enable the test on
| |
| 1294 def PyAutoTesterIsBroken(env): | 1295 def PyAutoTesterIsBroken(env): |
| 1295 return (PPAPIBrowserTesterIsBroken(env) or | 1296 return (PPAPIBrowserTesterIsBroken(env) or |
| 1296 (env.Bit('build_x86_32') and platform.architecture()[0] == '64bit')) | 1297 (env.Bit('build_x86_32') and platform.architecture()[0] == '64bit') |
| 1298 and not env.Bit('host_mac')) | |
| 1297 | 1299 |
| 1298 pre_base_env.AddMethod(PyAutoTesterIsBroken) | 1300 pre_base_env.AddMethod(PyAutoTesterIsBroken) |
| 1299 | 1301 |
| 1300 | 1302 |
| 1301 # Disable async surfaway pyauto test suite on newlib until issues it raises on | 1303 # Disable async surfaway pyauto test suite on newlib until issues it raises on |
| 1302 # bots are fixed. TODO(nfullagar): re-enable when this suite for newlib when it | 1304 # bots are fixed. TODO(nfullagar): re-enable when this suite for newlib when it |
| 1303 # won't break the bots. | 1305 # won't break the bots. |
| 1304 def PyAutoTesterSurfawayAsyncIsBroken(env): | 1306 def PyAutoTesterSurfawayAsyncIsBroken(env): |
| 1305 return not env.Bit('nacl_glibc') | 1307 return not env.Bit('nacl_glibc') |
| 1306 | 1308 |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3159 nacl_env.ValidateSdk() | 3161 nacl_env.ValidateSdk() |
| 3160 | 3162 |
| 3161 if BROKEN_TEST_COUNT > 0: | 3163 if BROKEN_TEST_COUNT > 0: |
| 3162 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 3164 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
| 3163 if GetOption('brief_comstr'): | 3165 if GetOption('brief_comstr'): |
| 3164 msg += " Add --verbose to the command line for more information." | 3166 msg += " Add --verbose to the command line for more information." |
| 3165 print msg | 3167 print msg |
| 3166 | 3168 |
| 3167 # separate warnings from actual build output | 3169 # separate warnings from actual build output |
| 3168 Banner('B U I L D - O U T P U T:') | 3170 Banner('B U I L D - O U T P U T:') |
| OLD | NEW |