summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/tests/ppapi_browser/ppp_instance/nacl.scons
blob: d95062d3635cfb6546b9e07443a5005dcc34aaba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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_ppp_instance_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppp_instance${PROGSUFFIX}',
          ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])

ppapi_ppp_instance_nexe = env.ComponentProgram(
    nexe,
    ['ppapi_ppp_instance.cc'],
    EXTRA_LIBS=['${PPAPI_LIBS}',
                'ppapi_test_lib',
                'platform',  # for CHECK
                'pthread',
                'gio',
                ])

env.Publish(nexe, 'run',
            ['ppapi_ppp_instance.html',
             'ppapi_ppp_instance.nmf',
             'ppapi_ppp_instance.js'])

node = env.PPAPIBrowserTester('ppapi_ppp_instance_browser_test.out',
                              url='ppapi_ppp_instance.html',
                              files=env.ExtractPublishedFiles(nexe))

env.AddNodeToTestSuite(node,
                       ['chrome_browser_tests'],
                       'run_ppapi_ppp_instance_browser_test',
                       is_broken=env.PPAPIBrowserTesterIsBroken())