Index: ppapi/native_client/tests/ppapi_browser/ppb_core/nacl.scons |
=================================================================== |
--- ppapi/native_client/tests/ppapi_browser/ppb_core/nacl.scons (revision 0) |
+++ ppapi/native_client/tests/ppapi_browser/ppb_core/nacl.scons (revision 0) |
@@ -0,0 +1,38 @@ |
+# -*- python -*- |
+# Copyright (c) 2011 The Native Client Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+# |
+# This test uses ppapi_test_lib. |
+ |
+Import('env') |
+ |
+env.Prepend(CPPDEFINES=['XP_UNIX']) |
+ |
+nexe = 'ppapi_ppb_core_%s' % env.get('TARGET_FULLARCH') |
+env.Alias('ppapi_ppb_core${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
+ |
+env.ComponentProgram( |
+ nexe, |
+ ['ppapi_ppb_core.cc'], |
+ EXTRA_LIBS=['${PPAPI_LIBS}', |
+ 'ppapi_test_lib', |
+ 'pthread', |
+ 'platform', |
+ 'gio']) |
+ |
+# Note that the html is required to run this program. |
+env.Publish(nexe, 'run', |
+ ['ppapi_ppb_core.html', |
+ 'ppapi_ppb_core.nmf', |
+ env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' |
+ 'browserdata/nacltest.js')]) |
+ |
+node = env.PPAPIBrowserTester('ppapi_ppb_core_browser_test.out', |
+ url='ppapi_ppb_core.html', |
+ files=env.ExtractPublishedFiles(nexe)) |
+ |
+env.AddNodeToTestSuite(node, |
+ ['chrome_browser_tests'], |
+ 'run_ppapi_ppb_core_browser_test', |
+ is_broken=env.PPAPIBrowserTesterIsBroken()) |