2 # Copyright (c) 2012 The Chromium 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.
10 pm_mf_obj = env.ComponentObject('pm_manifest_file_test.o',
11 'pm_manifest_file_test.cc')
12 pm_mf_nexe_name = env.ProgramNameForNmf('pm_manifest_file_test')
13 pm_mf_nexe = env.ComponentProgram(pm_mf_nexe_name,
15 EXTRA_LIBS=['nacl_ppapi_util',
25 env.Publish(pm_mf_nexe_name, 'run',
26 ['pm_manifest_file_test.html', 'test_file.txt'])
28 # chrome_browser_tests
30 node = env.PPAPIBrowserTester(
31 'pm_mf_browser_test.out',
32 url='pm_manifest_file_test.html',
33 nmfs=['pm_manifest_file.nmf'],
34 files=env.ExtractPublishedFiles(pm_mf_nexe_name),
35 # osenv=['NACLVERBOSITY=4,pp_weak_ref=4,weak_ref=4']
38 env.AddNodeToTestSuite(node,
39 ['chrome_browser_tests'],
40 'run_pm_manifest_file_chrome_browser_test',
41 is_broken=env.PPAPIBrowserTesterIsBroken() or
42 env.Bit('nacl_glibc'))
45 # post message, pre-init version
47 pm_pi_mf_obj = env.ComponentObject('pm_pre_init_manifest_file_test.o',
48 'pm_pre_init_manifest_file_test.cc')
49 pm_pi_mf_nexe_name = env.ProgramNameForNmf('pm_pre_init_manifest_file_test')
50 pm_pi_mf_nexe = env.ComponentProgram(pm_pi_mf_nexe_name,
52 EXTRA_LIBS=['nacl_ppapi_util',
62 env.Publish(pm_pi_mf_nexe_name, 'run',
63 ['pm_pre_init_manifest_file_test.html', 'test_file.txt'])
65 # chrome_browser_tests
67 node = env.PPAPIBrowserTester(
68 'pm_pi_mf_browser_test.out',
69 url='pm_pre_init_manifest_file_test.html',
70 nmfs=['pm_pre_init_manifest_file.nmf'],
71 files=env.ExtractPublishedFiles(pm_pi_mf_nexe_name),
72 # osenv=['NACLVERBOSITY=4,pp_weak_ref=4,weak_ref=4']
74 env.AddNodeToTestSuite(node,
75 ['chrome_browser_tests'],
76 'run_pm_pi_manifest_file_chrome_browser_test',
77 is_broken=env.PPAPIBrowserTesterIsBroken() or
78 env.Bit('nacl_glibc'))
80 irt_mf_nexe_name = env.ProgramNameForNmf('irt_manifest_file_test')
81 irt_mf_nexe = env.ComponentProgram(irt_mf_nexe_name,
82 'irt_manifest_file_test.cc',
83 EXTRA_LIBS=['nacl_ppapi_util',
94 env.Publish(irt_mf_nexe_name, 'run',
95 ['irt_manifest_file_test.html', 'test_file.txt'])
96 node = env.PPAPIBrowserTester(
97 'irt_mf_browser_test.out',
98 url='irt_manifest_file_test.html',
99 nmfs=['irt_manifest_file.nmf'],
100 files=env.ExtractPublishedFiles(irt_mf_nexe_name),
102 env.AddNodeToTestSuite(node,
103 ['chrome_browser_tests'],
104 'run_irt_manifest_file_chrome_browser_test',
105 is_broken=env.PPAPIBrowserTesterIsBroken() or
106 env.Bit('nacl_glibc'))