1 # -*- python -*- 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 # 6 # This test uses ppapi_test_lib. 7 8 Import('env') 9 10 env.Prepend(CPPDEFINES=['XP_UNIX']) 11 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + 12 'ppb_instance') 13 14 nexe = env.ProgramNameForNmf('ppapi_ppb_instance') 15 env.Alias('ppapi_ppb_instance${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) 16 17 env.ComponentProgram( 18 nexe, 19 ['ppapi_ppb_instance.cc'], 20 EXTRA_LIBS=['ppapi', 21 'ppapi_test_lib', 22 'pthread', 23 'platform', 24 'gio']) 25 26 # Note that the html is required to run this program. 27 env.Publish(nexe, 'run', 28 ['ppapi_ppb_instance.html']) 29 30 node = env.PPAPIBrowserTester('ppapi_ppb_instance_browser_test.out', 31 url='ppapi_ppb_instance.html', 32 nmf_names=['ppapi_ppb_instance'], 33 files=env.ExtractPublishedFiles(nexe)) 34 35 env.AddNodeToTestSuite(node, 36 ['chrome_browser_tests'], 37 'run_ppapi_ppb_instance_browser_test', 38 is_broken=env.PPAPIBrowserTesterIsBroken()) 39