| 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('env') | 6 Import('env') |
| 7 | 7 |
| 8 | 8 |
| 9 env.ComponentLibrary('testrunner', ['test_runner.c']) | 9 env.ComponentLibrary('testrunner', ['test_runner.c']) |
| 10 | 10 |
| 11 | 11 |
| 12 if env.Bit('bitcode'): | 12 if env.Bit('bitcode'): |
| 13 # The test is disabled for ARM/PNaCl because dynamic_load_test.nexe | 13 # The test is disabled for ARM/PNaCl because dynamic_load_test.nexe |
| 14 # was disabled for ARM/PNaCl. TODO(mseaborn): Re-enable both. | 14 # was disabled for ARM/PNaCl. TODO(mseaborn): Re-enable both. |
| 15 Return() | 15 Return() |
| 16 | 16 |
| 17 arch_suffix = '_%s.nexe' % env.get('TARGET_FULLARCH') | |
| 18 dest_copy = env.Replicate('$STAGING_DIR', 'test_runner.html') | 17 dest_copy = env.Replicate('$STAGING_DIR', 'test_runner.html') |
| 19 env.Replicate('$STAGING_DIR', | 18 env.Replicate('$STAGING_DIR', |
| 20 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') | 19 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') |
| 21 test_files = [ | 20 test_files = [ |
| 22 env.File('$STAGING_DIR/nacltest.js'), | 21 env.File('$STAGING_DIR/nacltest.js'), |
| 23 env.File('$STAGING_DIR/dynamic_load_test.nmf'), | 22 env.File('$STAGING_DIR/dynamic_load_test.nmf'), |
| 24 env.File('$STAGING_DIR/dynamic_load_test' + arch_suffix), | 23 env.File('$STAGING_DIR/dynamic_load_test_${TARGET_FULLARCH}${PROGSUFFIX}'), |
| 25 env.File('$STAGING_DIR/dynamic_modify_test.nmf'), | 24 env.File('$STAGING_DIR/dynamic_modify_test.nmf'), |
| 26 env.File('$STAGING_DIR/dynamic_modify_test' + arch_suffix), | 25 env.File('$STAGING_DIR/dynamic_modify_test_${TARGET_FULLARCH}${PROGSUFFIX}'), |
| 27 env.File('$STAGING_DIR/imc_shm_mmap_test.nmf'), | 26 env.File('$STAGING_DIR/imc_shm_mmap_test.nmf'), |
| 28 env.File('$STAGING_DIR/imc_shm_mmap_test' + arch_suffix), | 27 env.File('$STAGING_DIR/imc_shm_mmap_test_${TARGET_FULLARCH}${PROGSUFFIX}'), |
| 29 ] | 28 ] |
| 29 |
| 30 # These are not true dependencies: They are not needed for | 30 # These are not true dependencies: They are not needed for |
| 31 # test_runner.html to be replicated to "staging", but they are needed | 31 # test_runner.html to be replicated to "staging", but they are needed |
| 32 # for test_runner.html to work when run. | 32 # for test_runner.html to work when run. |
| 33 env.Depends(dest_copy, test_files) | 33 env.Depends(dest_copy, test_files) |
| 34 env.Alias('test_runner.html', dest_copy) | 34 env.Alias('test_runner.html', dest_copy) |
| 35 | 35 |
| 36 node = env.PPAPIBrowserTester( | 36 node = env.PPAPIBrowserTester( |
| 37 'inbrowser_test_runner.out', url='test_runner.html', | 37 'inbrowser_test_runner.out', url='test_runner.html', |
| 38 files=[env.File('test_runner.html')] + test_files, | 38 files=[env.File('test_runner.html')] + test_files, |
| 39 args=['--enable_experimental_js']) | 39 args=['--enable_experimental_js']) |
| 40 | 40 |
| 41 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], | 41 env.AddNodeToTestSuite(node, ['chrome_browser_tests'], |
| 42 'run_inbrowser_test_runner', | 42 'run_inbrowser_test_runner', |
| 43 is_flaky=True, # Don't subject Chrome to our problems. | 43 is_flaky=True, # Don't subject Chrome to our problems. |
| 44 is_broken=env.PPAPIBrowserTesterIsBroken()) | 44 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| OLD | NEW |