OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 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 |
| 4 # found in the LICENSE file. |
| 5 # |
| 6 # This test demonstrates sample usage of ppapi_test_lib. |
| 7 # |
| 8 # These ppapi_test_lib/ headers should be used by the test setup: |
| 9 # test_interface.h - test interface + setup to be implemented by the tester. |
| 10 # get_browser_interface.h - provides getters for proxy-supported interfaces. |
| 11 # |
| 12 # ppapi_test_example.cc - sample implementation test_interface.h. |
| 13 # ppapi_test_example.html - sample test driver that uses scripting. |
| 14 # ppapi_test_example.js - setup for sample test driver. |
| 15 # ppapi_test_example.nmf - sample manifest for platform-specific nexes. |
| 16 |
| 17 Import('env') |
| 18 |
| 19 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 20 |
| 21 nexe = 'ppapi_test_example_%s' % env.get('TARGET_FULLARCH') |
| 22 env.Alias('ppapi_test_example${PROGSUFFIX}', |
| 23 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 24 |
| 25 ppapi_test_example_nexe = env.ComponentProgram( |
| 26 nexe, |
| 27 ['ppapi_test_example.cc'], |
| 28 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 29 'ppapi_test_lib', |
| 30 'platform', # for CHECK |
| 31 'pthread', |
| 32 'gio', |
| 33 ]) |
| 34 |
| 35 env.Publish(nexe, 'run', |
| 36 ['ppapi_test_example.html', |
| 37 'ppapi_test_example.nmf', |
| 38 'ppapi_test_example.js']) |
| 39 |
| 40 node = env.PPAPIBrowserTester('ppapi_test_example_browser_test.out', |
| 41 url='ppapi_test_example.html', |
| 42 files=env.ExtractPublishedFiles(nexe)) |
| 43 |
| 44 env.AddNodeToTestSuite(node, |
| 45 ['chrome_browser_tests'], |
| 46 'run_ppapi_test_example_browser_test', |
| 47 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |