| 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 # This test uses ppapi_test_lib. | 6 # This test uses ppapi_test_lib. |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 env.Prepend(CPPDEFINES=['XP_UNIX']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + |
| 12 'ppb_file_system') |
| 11 | 13 |
| 12 nexe = 'ppapi_ppb_file_system_%s' % env.get('TARGET_FULLARCH') | 14 nexe = 'ppapi_ppb_file_system_%s' % env.get('TARGET_FULLARCH') |
| 13 env.Alias('ppapi_ppb_file_system${PROGSUFFIX}', | 15 env.Alias('ppapi_ppb_file_system${PROGSUFFIX}', |
| 14 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 16 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 15 | 17 |
| 16 env.ComponentProgram(nexe, | 18 env.ComponentProgram(nexe, |
| 17 ['ppapi_ppb_file_system.cc'], | 19 ['ppapi_ppb_file_system.cc'], |
| 18 EXTRA_LIBS=['${PPAPI_LIBS}', | 20 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 19 'ppapi_test_lib', | 21 'ppapi_test_lib', |
| 20 'platform', | 22 'platform', |
| 21 'pthread', | 23 'pthread', |
| 22 'gio']) | 24 'gio']) |
| 23 | 25 |
| 24 env.Publish(nexe, 'run', | 26 env.Publish(nexe, 'run', |
| 25 ['ppapi_ppb_file_system.html', | 27 ['ppapi_ppb_file_system.html', |
| 26 'ppapi_ppb_file_system.nmf', | |
| 27 'ppapi_ppb_file_system.js']) | 28 'ppapi_ppb_file_system.js']) |
| 28 | 29 |
| 29 node = env.PPAPIBrowserTester('ppapi_ppb_file_system_browser_test.out', | 30 node = env.PPAPIBrowserTester('ppapi_ppb_file_system_browser_test.out', |
| 30 url='ppapi_ppb_file_system.html', | 31 url='ppapi_ppb_file_system.html', |
| 32 nmf='${TEST_DIR}/ppapi_ppb_file_system.nmf', |
| 31 files=env.ExtractPublishedFiles(nexe)) | 33 files=env.ExtractPublishedFiles(nexe)) |
| 32 | 34 |
| 33 env.AddNodeToTestSuite(node, | 35 env.AddNodeToTestSuite(node, |
| 34 ['chrome_browser_tests'], | 36 ['chrome_browser_tests'], |
| 35 'run_ppapi_ppb_file_system_browser_test', | 37 'run_ppapi_ppb_file_system_browser_test', |
| 36 is_broken=env.PPAPIBrowserTesterIsBroken()) | 38 is_broken=env.PPAPIBrowserTesterIsBroken() or |
| 39 env.Bit('nacl_glibc')) |
| OLD | NEW |