Commit a8bb01b9 authored by bradnelson@google.com's avatar bradnelson@google.com

Revert 98616 - Landing chrome side of nacl change pre-dating ppapi switch.

Landing http://codereview.chromium.org/7745047/ for halyavin.

BUG=None
TEST=None
R=halyavin@google.com
Review URL: http://codereview.chromium.org/7778012

TBR=bradnelson@google.com
Review URL: http://codereview.chromium.org/7736016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98629 0039d316-1c4b-4281-b951-d872f2087c98
parent 3a5bccf0
...@@ -7,7 +7,7 @@ vars = { ...@@ -7,7 +7,7 @@ vars = {
"webkit_revision": "93959", "webkit_revision": "93959",
"chromium_git": "http://git.chromium.org/git", "chromium_git": "http://git.chromium.org/git",
"swig_revision": "69281", "swig_revision": "69281",
"nacl_revision": "6568", "nacl_revision": "6562",
# After changing nacl_revision, run 'glient sync' and check native_client/DEPS # After changing nacl_revision, run 'glient sync' and check native_client/DEPS
# to update other nacl_*_revision's. # to update other nacl_*_revision's.
# TODO(brettw) We should use the "From" syntax to avoid hardcoding the # TODO(brettw) We should use the "From" syntax to avoid hardcoding the
......
...@@ -18,8 +18,6 @@ Import('env') ...@@ -18,8 +18,6 @@ Import('env')
# TODO(robertm): those should not be necessary once we go -std=c99 # TODO(robertm): those should not be necessary once we go -std=c99
env.FilterOut(CFLAGS=['-pedantic']) env.FilterOut(CFLAGS=['-pedantic'])
env.FilterOut(CCFLAGS=['-pedantic']) env.FilterOut(CCFLAGS=['-pedantic'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'bad')
ppapi_bad_files = [ ppapi_bad_files = [
'ppapi_bad.html', 'ppapi_bad.html',
...@@ -34,7 +32,7 @@ ppapi_bad_files = [ ...@@ -34,7 +32,7 @@ ppapi_bad_files = [
] ]
ppapi_bad = env.Replicate('${STAGING_DIR}', ppapi_bad_files) ppapi_bad = env.Replicate('${STAGING_DIR}', ppapi_bad_files)
nmfs = []
# Compile all nexes embedded into the above html # Compile all nexes embedded into the above html
for kind in [ 'ppp_initialize', 'ppp_initialize_crash', for kind in [ 'ppp_initialize', 'ppp_initialize_crash',
'no_ppp_instance', 'get_ppp_instance_crash', 'no_ppp_instance', 'get_ppp_instance_crash',
...@@ -42,7 +40,7 @@ for kind in [ 'ppp_initialize', 'ppp_initialize_crash', ...@@ -42,7 +40,7 @@ for kind in [ 'ppp_initialize', 'ppp_initialize_crash',
'ppp_instance_didcreate', 'ppp_instance_didcreate_crash', 'ppp_instance_didcreate', 'ppp_instance_didcreate_crash',
'event_replay_crash' 'event_replay_crash'
]: ]:
bad_nmf = '${TEST_DIR}/ppapi_bad_%s.nmf' % kind bad_nmf = 'ppapi_bad_%s.nmf' % kind
bad_nexe = ('ppapi_bad_%s_%s' % (kind, env.get('TARGET_FULLARCH'))) bad_nexe = ('ppapi_bad_%s_%s' % (kind, env.get('TARGET_FULLARCH')))
env.ComponentProgram(bad_nexe, env.ComponentProgram(bad_nexe,
['ppapi_bad_%s.cc' % kind], ['ppapi_bad_%s.cc' % kind],
...@@ -50,7 +48,8 @@ for kind in [ 'ppp_initialize', 'ppp_initialize_crash', ...@@ -50,7 +48,8 @@ for kind in [ 'ppp_initialize', 'ppp_initialize_crash',
'platform', 'platform',
'pthread', 'pthread',
'gio']) 'gio'])
nmfs.append(bad_nmf)
env.Publish(bad_nexe, 'run', [bad_nmf])
ppapi_bad_files.extend(env.ExtractPublishedFiles(bad_nexe)) ppapi_bad_files.extend(env.ExtractPublishedFiles(bad_nexe))
env.Depends(ppapi_bad, env.Alias(bad_nexe)) env.Depends(ppapi_bad, env.Alias(bad_nexe))
...@@ -61,21 +60,21 @@ env.Alias('ppapi_bad', ppapi_bad) ...@@ -61,21 +60,21 @@ env.Alias('ppapi_bad', ppapi_bad)
node = env.PPAPIBrowserTester( node = env.PPAPIBrowserTester(
'ppapi_bad_browser_test.out', 'ppapi_bad_browser_test.out',
url='ppapi_bad.html', url='ppapi_bad.html',
nmf=nmfs,
files=[env.File(f) for f in ppapi_bad_files], files=[env.File(f) for f in ppapi_bad_files],
args=['--allow_404']) args=['--allow_404'])
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_bad_browser_test', 'run_ppapi_bad_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken())
env.Bit('nacl_glibc'))
# Bad nexe tests that won't work in PNaCl (native) # Bad nexe tests that won't work in PNaCl (native)
# For example, partly_invalid.nexe has inline assembly in its source files. # For example, partly_invalid.nexe has inline assembly in its source files.
ppapi_bad_native_files = [ ppapi_bad_native_files = [
env.File('ppapi_bad_native.html'), env.File('ppapi_bad_native.html'),
env.File('partly_invalid.nmf'),
env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' +
'ppapi_progress_events.js'), 'ppapi_progress_events.js'),
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js')
...@@ -89,13 +88,11 @@ ppapi_bad_native_files.append(partly_invalid) ...@@ -89,13 +88,11 @@ ppapi_bad_native_files.append(partly_invalid)
node = env.PPAPIBrowserTester( node = env.PPAPIBrowserTester(
'ppapi_bad_native_test.out', 'ppapi_bad_native_test.out',
url='ppapi_bad_native.html', url='ppapi_bad_native.html',
nmf='${TEST_DIR}/partly_invalid.nmf',
files=ppapi_bad_native_files, files=ppapi_bad_native_files,
) )
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_bad_native_test', 'run_ppapi_bad_native_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken() or
env.Bit('nacl_glibc') or env.Bit('bitcode'))
env.Bit('bitcode'))
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(
TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/crash')
crash_types = ['via_check_failure', crash_types = ['via_check_failure',
'via_exit_call', 'via_exit_call',
...@@ -21,7 +19,6 @@ crash_types = ['via_check_failure', ...@@ -21,7 +19,6 @@ crash_types = ['via_check_failure',
'ppapi_off_main_thread'] 'ppapi_off_main_thread']
published_files = [] published_files = []
nmfs = []
for crash_type in crash_types: for crash_type in crash_types:
nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH')) nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH'))
env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type, env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type,
...@@ -39,19 +36,17 @@ for crash_type in crash_types: ...@@ -39,19 +36,17 @@ for crash_type in crash_types:
# TODO(polina): follow ppapi_browser/bad nacl.scons to publish html only once # TODO(polina): follow ppapi_browser/bad nacl.scons to publish html only once
# and to associate all nexes and nmf files with one target that can be # and to associate all nexes and nmf files with one target that can be
# referenced in tests/nacl.scons. # referenced in tests/nacl.scons.
nmfs.append('${TEST_DIR}/ppapi_crash_%s.nmf' % crash_type)
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_crash.html']) ['ppapi_crash.html',
'ppapi_crash_%s.nmf' % crash_type ])
published_files.extend(env.ExtractPublishedFiles(nexe)) published_files.extend(env.ExtractPublishedFiles(nexe))
node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out', node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out',
url='ppapi_crash.html', url='ppapi_crash.html',
nmf=nmfs,
files=published_files) files=published_files)
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_crash_browser_test', 'run_ppapi_crash_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken())
env.Bit('nacl_glibc'))
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'extension_mime_handler')
nexe = 'ppapi_extension_mime_handler_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_extension_mime_handler_%s' % env.get('TARGET_FULLARCH')
...@@ -29,11 +27,9 @@ env.ComponentProgram( ...@@ -29,11 +27,9 @@ env.ComponentProgram(
# Copy the extension into place (as a subdir in the staging dir). # Copy the extension into place (as a subdir in the staging dir).
dest_copy = env.Replicate('$STAGING_DIR/ppapi_extension_mime_handler', dest_copy = env.Replicate('$STAGING_DIR/ppapi_extension_mime_handler',
['manifest.json', ['ppapi_extension_mime_handler.nmf',
'manifest.json',
env.File('$STAGING_DIR/' + nexe + '$PROGSUFFIX')]) env.File('$STAGING_DIR/' + nexe + '$PROGSUFFIX')])
dest_copy.append(env.CopyLibsForExtension(
'$STAGING_DIR/ppapi_extension_mime_handler',
'$STAGING_DIR/ppapi_extension_mime_handler.nmf'))
env.Depends(env.Alias(nexe), dest_copy) env.Depends(env.Alias(nexe), dest_copy)
...@@ -44,7 +40,6 @@ env.Publish(nexe, 'run', ...@@ -44,7 +40,6 @@ env.Publish(nexe, 'run',
node = env.PPAPIBrowserTester('ppapi_extension_mime_handler.out', node = env.PPAPIBrowserTester('ppapi_extension_mime_handler.out',
url='ppapi_extension_mime_handler.html', url='ppapi_extension_mime_handler.html',
nmf='${TEST_DIR}/ppapi_extension_mime_handler.nmf',
extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')], extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')],
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
......
...@@ -8,8 +8,6 @@ Import('env') ...@@ -8,8 +8,6 @@ Import('env')
# TODO(robertm): those should not be necessary once we go -std=c99 # TODO(robertm): those should not be necessary once we go -std=c99
env.FilterOut(CFLAGS=['-pedantic']) env.FilterOut(CFLAGS=['-pedantic'])
env.FilterOut(CCFLAGS=['-pedantic']) env.FilterOut(CCFLAGS=['-pedantic'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'manifest')
manifest_good_sources = env.ComponentObject('manifest_good.cc'), manifest_good_sources = env.ComponentObject('manifest_good.cc'),
...@@ -38,31 +36,26 @@ env.ComponentProgram(manifest_bad_target, ...@@ -38,31 +36,26 @@ env.ComponentProgram(manifest_bad_target,
env.Publish(manifest_good_target, 'run', [ env.Publish(manifest_good_target, 'run', [
'manifest.html', 'manifest.html',
manifest_bad_target, manifest_bad_target,
'manifest_top.nmf',
'manifest_subdir.nmf',
('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + ('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' +
'ppapi_progress_events.js'), 'ppapi_progress_events.js'),
'${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js', '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js',
]) ])
file_mapping = []
if env.Bit('nacl_glibc'):
file_mapping.append(
('subdir/runnable-ld.so',env.File('${NACL_SDK_LIB}/runnable-ld.so')))
file_mapping += [
('subdir/manifest_subdir.nmf',
env.File('${STAGING_DIR}/manifest_subdir.nmf')),
# the 'good' nexe in the root directory will fail.
(manifest_good_target + env['PROGSUFFIX'],
env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % manifest_bad_target)),
# the 'good' nexe in the subdirectory will succeed.
('subdir/' + manifest_good_target + env['PROGSUFFIX'],
env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % manifest_good_target))]
node = env.PPAPIBrowserTester( node = env.PPAPIBrowserTester(
'manifest_browser_test.out', 'manifest_browser_test.out',
url='manifest.html', url='manifest.html',
nmf=['${TEST_DIR}/manifest_top.nmf', '${TEST_DIR}/manifest_subdir.nmf'],
files=env.ExtractPublishedFiles(manifest_good_target), files=env.ExtractPublishedFiles(manifest_good_target),
map_files=file_mapping) map_files=[
('subdir/manifest_subdir.nmf',
env.File('${STAGING_DIR}/manifest_subdir.nmf')),
# the 'good' nexe in the root directory will fail.
(manifest_good_target + env['PROGSUFFIX'],
env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % manifest_bad_target)),
# the 'good' nexe in the subdirectory will succeed.
('subdir/' + manifest_good_target + env['PROGSUFFIX'],
env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % manifest_good_target))])
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_core')
nexe = 'ppapi_ppb_core_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_core_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_core${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) env.Alias('ppapi_ppb_core${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
...@@ -26,16 +24,15 @@ env.ComponentProgram( ...@@ -26,16 +24,15 @@ env.ComponentProgram(
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_core.html', ['ppapi_ppb_core.html',
'ppapi_ppb_core.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js')]) 'browserdata/nacltest.js')])
node = env.PPAPIBrowserTester('ppapi_ppb_core_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_core_browser_test.out',
url='ppapi_ppb_core.html', url='ppapi_ppb_core.html',
nmf='${TEST_DIR}/ppapi_ppb_core.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_ppb_core_browser_test', 'run_ppapi_ppb_core_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken())
env.Bit('nacl_glibc'))
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_dev')
nexe = 'ppapi_ppb_dev_${TARGET_FULLARCH}' nexe = 'ppapi_ppb_dev_${TARGET_FULLARCH}'
env.Alias('ppapi_ppb_dev${PROGSUFFIX}', env.Alias('ppapi_ppb_dev${PROGSUFFIX}',
...@@ -27,12 +25,12 @@ env.ComponentProgram( ...@@ -27,12 +25,12 @@ env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
[ 'ppapi_ppb_dev.html', [ 'ppapi_ppb_dev.html',
'ppapi_ppb_dev.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js') ]) 'browserdata/nacltest.js') ])
node = env.PPAPIBrowserTester('ppapi_ppb_dev_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_dev_browser_test.out',
url='ppapi_ppb_dev.html', url='ppapi_ppb_dev.html',
nmf='${TEST_DIR}/ppapi_ppb_dev.nmf',
files=env.ExtractPublishedFiles(nexe), files=env.ExtractPublishedFiles(nexe),
args=['--enable_ppapi_dev=0']) args=['--enable_ppapi_dev=0'])
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_file_io')
nexe = 'ppapi_ppb_file_io_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_file_io_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_file_io${PROGSUFFIX}', env.Alias('ppapi_ppb_file_io${PROGSUFFIX}',
...@@ -30,11 +28,11 @@ env.ComponentProgram(nexe, ...@@ -30,11 +28,11 @@ env.ComponentProgram(nexe,
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_file_io.html', ['ppapi_ppb_file_io.html',
'ppapi_ppb_file_io.nmf',
'ppapi_ppb_file_io.js']) 'ppapi_ppb_file_io.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_file_io_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_file_io_browser_test.out',
url='ppapi_ppb_file_io.html', url='ppapi_ppb_file_io.html',
nmf='${TEST_DIR}/ppapi_ppb_file_io.nmf',
browser_flags=['--unlimited-quota-for-files'], browser_flags=['--unlimited-quota-for-files'],
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_file_system')
nexe = 'ppapi_ppb_file_system_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_file_system_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_file_system${PROGSUFFIX}', env.Alias('ppapi_ppb_file_system${PROGSUFFIX}',
...@@ -25,15 +23,14 @@ env.ComponentProgram(nexe, ...@@ -25,15 +23,14 @@ env.ComponentProgram(nexe,
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_file_system.html', ['ppapi_ppb_file_system.html',
'ppapi_ppb_file_system.nmf',
'ppapi_ppb_file_system.js']) 'ppapi_ppb_file_system.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_file_system_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_file_system_browser_test.out',
url='ppapi_ppb_file_system.html', url='ppapi_ppb_file_system.html',
nmf='${TEST_DIR}/ppapi_ppb_file_system.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_ppb_file_system_browser_test', 'run_ppapi_ppb_file_system_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken())
env.Bit('nacl_glibc'))
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_graphics2d')
nexe = 'ppapi_ppb_graphics2d_${TARGET_FULLARCH}' nexe = 'ppapi_ppb_graphics2d_${TARGET_FULLARCH}'
env.Alias('ppapi_ppb_graphics2d${PROGSUFFIX}', env.Alias('ppapi_ppb_graphics2d${PROGSUFFIX}',
...@@ -27,14 +25,15 @@ ppapi_ppb_graphics2d_nexe = env.ComponentProgram( ...@@ -27,14 +25,15 @@ ppapi_ppb_graphics2d_nexe = env.ComponentProgram(
dest_copy = env.Publish(nexe, 'run', dest_copy = env.Publish(nexe, 'run',
[ 'ppapi_ppb_graphics2d.html', [ 'ppapi_ppb_graphics2d.html',
'ppapi_ppb_graphics2d.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js') ] 'browserdata/nacltest.js') ]
) )
node = env.PPAPIBrowserTester('ppapi_ppb_graphics2d_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_graphics2d_browser_test.out',
url='ppapi_ppb_graphics2d.html', url='ppapi_ppb_graphics2d.html',
nmf='${TEST_DIR}/ppapi_ppb_graphics2d.nmf',
files=[ ppapi_ppb_graphics2d_nexe, files=[ ppapi_ppb_graphics2d_nexe,
env.File('ppapi_ppb_graphics2d.nmf'),
env.File('ppapi_ppb_graphics2d.html')], env.File('ppapi_ppb_graphics2d.html')],
browser_flags=['--enable-pepper-testing']) browser_flags=['--enable-pepper-testing'])
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_graphics3d')
env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include']) env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include'])
...@@ -30,13 +28,14 @@ ppapi_ppb_graphics3d_nexe = env.ComponentProgram( ...@@ -30,13 +28,14 @@ ppapi_ppb_graphics3d_nexe = env.ComponentProgram(
dest_copy = env.Publish(nexe, 'run', dest_copy = env.Publish(nexe, 'run',
[ 'ppapi_ppb_graphics3d.html', [ 'ppapi_ppb_graphics3d.html',
'ppapi_ppb_graphics3d.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js') ]) 'browserdata/nacltest.js') ])
node = env.PPAPIBrowserTester('ppapi_ppb_graphics3d_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_graphics3d_browser_test.out',
url='ppapi_ppb_graphics3d.html', url='ppapi_ppb_graphics3d.html',
nmf='${TEST_DIR}/ppapi_ppb_graphics3d.nmf',
files=[ ppapi_ppb_graphics3d_nexe, files=[ ppapi_ppb_graphics3d_nexe,
env.File('ppapi_ppb_graphics3d.nmf'),
env.File('ppapi_ppb_graphics3d.html')], env.File('ppapi_ppb_graphics3d.html')],
browser_flags=['--enable-accelerated-plugins']) browser_flags=['--enable-accelerated-plugins'])
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_image_data')
nexe = 'ppapi_ppb_image_data_${TARGET_FULLARCH}' nexe = 'ppapi_ppb_image_data_${TARGET_FULLARCH}'
env.Alias('ppapi_ppb_image_data${PROGSUFFIX}', env.Alias('ppapi_ppb_image_data${PROGSUFFIX}',
...@@ -27,12 +25,12 @@ env.ComponentProgram( ...@@ -27,12 +25,12 @@ env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
[ 'ppapi_ppb_image_data.html', [ 'ppapi_ppb_image_data.html',
'ppapi_ppb_image_data.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js') ]) 'browserdata/nacltest.js') ])
node = env.PPAPIBrowserTester('ppapi_ppb_image_data_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_image_data_browser_test.out',
url='ppapi_ppb_image_data.html', url='ppapi_ppb_image_data.html',
nmf='${TEST_DIR}/ppapi_ppb_image_data.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_instance')
nexe = 'ppapi_ppb_instance_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_instance_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_instance${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) env.Alias('ppapi_ppb_instance${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
...@@ -26,12 +24,12 @@ env.ComponentProgram( ...@@ -26,12 +24,12 @@ env.ComponentProgram(
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_instance.html', ['ppapi_ppb_instance.html',
'ppapi_ppb_instance.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js')]) 'browserdata/nacltest.js')])
node = env.PPAPIBrowserTester('ppapi_ppb_instance_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_instance_browser_test.out',
url='ppapi_ppb_instance.html', url='ppapi_ppb_instance.html',
nmf='${TEST_DIR}/ppapi_ppb_instance.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_memory')
nexe = 'ppapi_ppb_memory_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_memory_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_memory${PROGSUFFIX}', env.Alias('ppapi_ppb_memory${PROGSUFFIX}',
...@@ -26,11 +24,11 @@ ppapi_ppb_memory_nexe = env.ComponentProgram( ...@@ -26,11 +24,11 @@ ppapi_ppb_memory_nexe = env.ComponentProgram(
]) ])
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_memory.html']) ['ppapi_ppb_memory.html',
'ppapi_ppb_memory.nmf'])
node = env.PPAPIBrowserTester('ppapi_ppb_memory_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_memory_browser_test.out',
url='ppapi_ppb_memory.html', url='ppapi_ppb_memory.html',
nmf='${TEST_DIR}/ppapi_ppb_memory.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_pdf')
nexe = 'ppapi_ppb_pdf_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_pdf_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_pdf${PROGSUFFIX}', env.Alias('ppapi_ppb_pdf${PROGSUFFIX}',
...@@ -26,11 +24,11 @@ ppapi_ppb_pdf_nexe = env.ComponentProgram( ...@@ -26,11 +24,11 @@ ppapi_ppb_pdf_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_pdf.html', ['ppapi_ppb_pdf.html',
'ppapi_ppb_pdf.nmf',
'ppapi_ppb_pdf.js']) 'ppapi_ppb_pdf.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_pdf_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_pdf_browser_test.out',
url='ppapi_ppb_pdf.html', url='ppapi_ppb_pdf.html',
nmf='${TEST_DIR}/ppapi_ppb_pdf.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_scrollbar')
nexe = 'ppapi_ppb_scrollbar_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_scrollbar_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_scrollbar${PROGSUFFIX}', env.Alias('ppapi_ppb_scrollbar${PROGSUFFIX}',
...@@ -26,11 +24,11 @@ ppapi_ppb_scrollbar_nexe = env.ComponentProgram( ...@@ -26,11 +24,11 @@ ppapi_ppb_scrollbar_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_scrollbar.html', ['ppapi_ppb_scrollbar.html',
'ppapi_ppb_scrollbar.nmf',
'ppapi_ppb_scrollbar.js']) 'ppapi_ppb_scrollbar.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_scrollbar_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_scrollbar_browser_test.out',
url='ppapi_ppb_scrollbar.html', url='ppapi_ppb_scrollbar.html',
nmf='${TEST_DIR}/ppapi_ppb_scrollbar.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_url_loader')
nexe = 'ppapi_ppb_url_loader_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_url_loader_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_url_loader${PROGSUFFIX}', env.Alias('ppapi_ppb_url_loader${PROGSUFFIX}',
...@@ -25,12 +23,12 @@ env.ComponentProgram(nexe, ...@@ -25,12 +23,12 @@ env.ComponentProgram(nexe,
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_url_loader.html', ['ppapi_ppb_url_loader.html',
'ppapi_ppb_url_loader.nmf',
'ppapi_ppb_url_loader.js', 'ppapi_ppb_url_loader.js',
'ppapi_ppb_url_loader.txt']) 'ppapi_ppb_url_loader.txt'])
node = env.PPAPIBrowserTester('ppapi_ppb_url_loader_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_url_loader_browser_test.out',
url='ppapi_ppb_url_loader.html', url='ppapi_ppb_url_loader.html',
nmf='${TEST_DIR}/ppapi_ppb_url_loader.nmf',
files=env.ExtractPublishedFiles(nexe), files=env.ExtractPublishedFiles(nexe),
args=['--allow_404', args=['--allow_404',
'--redirect_url', '--redirect_url',
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_url_request_info')
nexe = 'ppapi_ppb_url_request_info_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_url_request_info_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_url_request_info${PROGSUFFIX}', env.Alias('ppapi_ppb_url_request_info${PROGSUFFIX}',
...@@ -27,11 +25,11 @@ ppapi_ppb_url_request_info_nexe = env.ComponentProgram( ...@@ -27,11 +25,11 @@ ppapi_ppb_url_request_info_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_url_request_info.html', ['ppapi_ppb_url_request_info.html',
'ppapi_ppb_url_request_info.nmf',
'ppapi_ppb_url_request_info.js']) 'ppapi_ppb_url_request_info.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_url_request_info_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_url_request_info_browser_test.out',
url='ppapi_ppb_url_request_info.html', url='ppapi_ppb_url_request_info.html',
nmf='${TEST_DIR}/ppapi_ppb_url_request_info.nmf',
files=env.ExtractPublishedFiles(nexe), files=env.ExtractPublishedFiles(nexe),
browser_flags=['--enable-pepper-testing']) browser_flags=['--enable-pepper-testing'])
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_var')
nexe = 'ppapi_ppb_var_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_var_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_var${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) env.Alias('ppapi_ppb_var${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
...@@ -26,12 +24,12 @@ env.ComponentProgram( ...@@ -26,12 +24,12 @@ env.ComponentProgram(
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_var.html', ['ppapi_ppb_var.html',
'ppapi_ppb_var.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js')]) 'browserdata/nacltest.js')])
node = env.PPAPIBrowserTester('ppapi_ppb_var_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_var_browser_test.out',
url='ppapi_ppb_var.html', url='ppapi_ppb_var.html',
nmf='${TEST_DIR}/ppapi_ppb_var.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppb_widget')
nexe = 'ppapi_ppb_widget_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppb_widget_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_widget${PROGSUFFIX}', env.Alias('ppapi_ppb_widget${PROGSUFFIX}',
...@@ -26,11 +24,11 @@ ppapi_ppb_widget_nexe = env.ComponentProgram( ...@@ -26,11 +24,11 @@ ppapi_ppb_widget_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppb_widget.html', ['ppapi_ppb_widget.html',
'ppapi_ppb_widget.nmf',
'ppapi_ppb_widget.js']) 'ppapi_ppb_widget.js'])
node = env.PPAPIBrowserTester('ppapi_ppb_widget_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppb_widget_browser_test.out',
url='ppapi_ppb_widget.html', url='ppapi_ppb_widget.html',
nmf='${TEST_DIR}/ppapi_ppb_widget.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppp_input_event')
nexe = 'ppapi_ppp_input_event_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppp_input_event_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppp_input_event${PROGSUFFIX}', env.Alias('ppapi_ppp_input_event${PROGSUFFIX}',
...@@ -27,11 +25,11 @@ ppapi_ppp_input_event_nexe = env.ComponentProgram( ...@@ -27,11 +25,11 @@ ppapi_ppp_input_event_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppp_input_event.html', ['ppapi_ppp_input_event.html',
'ppapi_ppp_input_event.nmf',
'ppapi_ppp_input_event.js']) 'ppapi_ppp_input_event.js'])
node = env.PPAPIBrowserTester('ppapi_ppp_input_event_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppp_input_event_browser_test.out',
url='ppapi_ppp_input_event.html', url='ppapi_ppp_input_event.html',
nmf='${TEST_DIR}/ppapi_ppp_input_event.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'ppp_instance')
nexe = 'ppapi_ppp_instance_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_ppp_instance_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppp_instance${PROGSUFFIX}', env.Alias('ppapi_ppp_instance${PROGSUFFIX}',
...@@ -27,11 +25,11 @@ ppapi_ppp_instance_nexe = env.ComponentProgram( ...@@ -27,11 +25,11 @@ ppapi_ppp_instance_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_ppp_instance.html', ['ppapi_ppp_instance.html',
'ppapi_ppp_instance.nmf',
'ppapi_ppp_instance.js']) 'ppapi_ppp_instance.js'])
node = env.PPAPIBrowserTester('ppapi_ppp_instance_browser_test.out', node = env.PPAPIBrowserTester('ppapi_ppp_instance_browser_test.out',
url='ppapi_ppp_instance.html', url='ppapi_ppp_instance.html',
nmf='${TEST_DIR}/ppapi_ppp_instance.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ Import('env') ...@@ -8,8 +8,6 @@ Import('env')
# TODO(robertm): those should not be necessary once we go -std=c99 # TODO(robertm): those should not be necessary once we go -std=c99
env.FilterOut(CFLAGS=['-pedantic']) env.FilterOut(CFLAGS=['-pedantic'])
env.FilterOut(CCFLAGS=['-pedantic']) env.FilterOut(CCFLAGS=['-pedantic'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
'progress_events')
progress_events_sources = env.ComponentObject('ppapi_progress_events.cc'), progress_events_sources = env.ComponentObject('ppapi_progress_events.cc'),
...@@ -26,6 +24,7 @@ env.ComponentProgram(progress_events_target, ...@@ -26,6 +24,7 @@ env.ComponentProgram(progress_events_target,
# Needed by other tests using progress events. # Needed by other tests using progress events.
env.Publish(progress_events_target, 'run', [ env.Publish(progress_events_target, 'run', [
'ppapi_progress_events.html', 'ppapi_progress_events.html',
'ppapi_progress_events.nmf',
('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + ('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' +
'ppapi_progress_events.js'), 'ppapi_progress_events.js'),
'${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js', '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js',
...@@ -34,7 +33,6 @@ env.Publish(progress_events_target, 'run', [ ...@@ -34,7 +33,6 @@ env.Publish(progress_events_target, 'run', [
node = env.PPAPIBrowserTester( node = env.PPAPIBrowserTester(
'ppapi_progress_events_browser_test.out', 'ppapi_progress_events_browser_test.out',
url='ppapi_progress_events.html', url='ppapi_progress_events.html',
nmf='${TEST_DIR}/ppapi_progress_events.nmf',
files=env.ExtractPublishedFiles(progress_events_target)) files=env.ExtractPublishedFiles(progress_events_target))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_audio/')
nexe_name = 'ppapi_example_audio_%s' % env.get('TARGET_FULLARCH') nexe_name = 'ppapi_example_audio_%s' % env.get('TARGET_FULLARCH')
nexe = env.ComponentProgram(nexe_name, nexe = env.ComponentProgram(nexe_name,
...@@ -23,11 +21,10 @@ nexe = env.ComponentProgram(nexe_name, ...@@ -23,11 +21,10 @@ nexe = env.ComponentProgram(nexe_name,
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe_name, 'run', env.Publish(nexe_name, 'run',
['ppapi_example_audio.html']) ['ppapi_example_audio.html' , 'ppapi_example_audio.nmf'])
test = env.PPAPIBrowserTester('ppapi_example_audio_test.out', test = env.PPAPIBrowserTester('ppapi_example_audio_test.out',
url='ppapi_example_audio.html#mute', url='ppapi_example_audio.html#mute',
nmf='${TEST_DIR}/ppapi_example_audio.nmf',
files=[nexe, files=[nexe,
env.File('ppapi_example_audio.nmf'), env.File('ppapi_example_audio.nmf'),
env.File('ppapi_example_audio.html')]) env.File('ppapi_example_audio.html')])
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_font/')
# Adjust compiler flags to the more forgiving standards used in # Adjust compiler flags to the more forgiving standards used in
# ppapi/examples/*. # ppapi/examples/*.
...@@ -26,11 +24,10 @@ nexe = env.ComponentProgram(nexe_name, [obj], ...@@ -26,11 +24,10 @@ nexe = env.ComponentProgram(nexe_name, [obj],
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe_name, 'run', env.Publish(nexe_name, 'run',
['ppapi_example_font.html']) ['ppapi_example_font.html', 'ppapi_example_font.nmf'])
test = env.PPAPIBrowserTester('ppapi_example_font_test.out', test = env.PPAPIBrowserTester('ppapi_example_font_test.out',
url='ppapi_example_font.html', url='ppapi_example_font.html',
nmf='${TEST_DIR}/ppapi_example_font.nmf',
files=env.ExtractPublishedFiles(nexe_name)) files=env.ExtractPublishedFiles(nexe_name))
env.AddNodeToTestSuite(test, env.AddNodeToTestSuite(test,
......
...@@ -8,9 +8,8 @@ ...@@ -8,9 +8,8 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include']) env.Append(CPPPATH=['$SOURCE_ROOT/ppapi/lib/gl/include'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_gles2/')
nexe_name = 'ppapi_example_gles2_%s' % env.get('TARGET_FULLARCH') nexe_name = 'ppapi_example_gles2_%s' % env.get('TARGET_FULLARCH')
obj = env.ComponentObject( obj = env.ComponentObject(
...@@ -22,11 +21,10 @@ nexe = env.ComponentProgram(nexe_name, [obj], ...@@ -22,11 +21,10 @@ nexe = env.ComponentProgram(nexe_name, [obj],
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe_name, 'run', env.Publish(nexe_name, 'run',
['ppapi_example_gles2.html']) ['ppapi_example_gles2.html', 'ppapi_example_gles2.nmf'])
test = env.PPAPIBrowserTester('ppapi_example_gles2_test.out', test = env.PPAPIBrowserTester('ppapi_example_gles2_test.out',
url='ppapi_example_gles2.html', url='ppapi_example_gles2.html',
nmf='${TEST_DIR}/ppapi_example_gles2.nmf',
files=env.ExtractPublishedFiles(nexe_name), files=env.ExtractPublishedFiles(nexe_name),
args=['--enable_experimental_js']) args=['--enable_experimental_js'])
...@@ -36,4 +34,4 @@ env.AddNodeToTestSuite(test, ...@@ -36,4 +34,4 @@ env.AddNodeToTestSuite(test,
# TODO(cstefansen): When fixed set to # TODO(cstefansen): When fixed set to
# env.PPAPIBrowserTesterIsBroken(). # env.PPAPIBrowserTesterIsBroken().
# code.google.com/p/nativeclient/issues/detail?id=1936 # code.google.com/p/nativeclient/issues/detail?id=1936
is_broken=env.Bit('nacl_glibc')) is_broken=True)
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_post_message/')
nexe_name = 'ppapi_example_post_message_${TARGET_FULLARCH}' nexe_name = 'ppapi_example_post_message_${TARGET_FULLARCH}'
obj = env.ComponentObject( obj = env.ComponentObject(
...@@ -21,13 +19,13 @@ nexe = env.ComponentProgram(nexe_name, [obj], ...@@ -21,13 +19,13 @@ nexe = env.ComponentProgram(nexe_name, [obj],
# Note that the html is required to run this program. # Note that the html is required to run this program.
env.Publish(nexe_name, 'run', env.Publish(nexe_name, 'run',
['ppapi_example_post_message.html']) ['ppapi_example_post_message.html',
'ppapi_example_post_message.nmf'])
test = env.PPAPIBrowserTester( test = env.PPAPIBrowserTester(
'ppapi_example_post_message_test.out', 'ppapi_example_post_message_test.out',
url='ppapi_example_post_message.html', url='ppapi_example_post_message.html',
nmf='${TEST_DIR}/ppapi_example_post_message.nmf',
files=env.ExtractPublishedFiles(nexe_name)) files=env.ExtractPublishedFiles(nexe_name))
env.AddNodeToTestSuite(test, env.AddNodeToTestSuite(test,
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_geturl/')
nexe = 'ppapi_geturl_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_geturl_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_geturl${PROGSUFFIX}', env.Alias('ppapi_geturl${PROGSUFFIX}',
...@@ -48,11 +46,11 @@ ppapi_geturl_nexe = env.ComponentProgram(nexe, ...@@ -48,11 +46,11 @@ ppapi_geturl_nexe = env.ComponentProgram(nexe,
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_geturl.html', ['ppapi_geturl.html',
'ppapi_geturl.nmf',
'ppapi_geturl_success.html']) 'ppapi_geturl_success.html'])
node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out', node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out',
url='ppapi_geturl.html', url='ppapi_geturl.html',
nmf='${TEST_DIR}/ppapi_geturl.nmf',
files=env.ExtractPublishedFiles(nexe), files=env.ExtractPublishedFiles(nexe),
args=['--allow_404'], args=['--allow_404'],
) )
...@@ -60,5 +58,5 @@ node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out', ...@@ -60,5 +58,5 @@ node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out',
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
['chrome_browser_tests'], ['chrome_browser_tests'],
'run_ppapi_geturl_browser_test', 'run_ppapi_geturl_browser_test',
is_broken=env.PPAPIBrowserTesterIsBroken() or is_broken=env.PPAPIBrowserTesterIsBroken()
env.Bit('nacl_glibc')) )
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_gles_book/')
# Underlay $SOURCE_ROOT/gpu in this directory. # Underlay $SOURCE_ROOT/gpu in this directory.
Dir('.').addRepository(Dir('#/../gpu')) Dir('.').addRepository(Dir('#/../gpu'))
...@@ -59,7 +57,7 @@ gles_book_examples = { ...@@ -59,7 +57,7 @@ gles_book_examples = {
for demo, sources in gles_book_examples.iteritems(): for demo, sources in gles_book_examples.iteritems():
nexe_name = ('ppapi_gles_book_%s_%s' nexe_name = ('ppapi_gles_book_%s_%s'
% (demo, env.get('TARGET_FULLARCH'))) % (demo, env.get('TARGET_FULLARCH')))
nmf_name = '${TEST_DIR}/ppapi_gles_book_' + demo + '.nmf' nmf_name = 'ppapi_gles_book_' + demo + '.nmf'
nexe = env.ComponentProgram( nexe = env.ComponentProgram(
nexe_name, nexe_name,
['demos/gles2_book/demo_' + demo + '.cc'] + sources, ['demos/gles2_book/demo_' + demo + '.cc'] + sources,
...@@ -70,11 +68,11 @@ for demo, sources in gles_book_examples.iteritems(): ...@@ -70,11 +68,11 @@ for demo, sources in gles_book_examples.iteritems():
'ppapi_gles2', 'ppapi_gles2',
'm']) 'm'])
env.Publish(nexe_name, 'run', env.Publish(nexe_name, 'run',
['ppapi_gles_book.html']) ['ppapi_gles_book.html',
nmf_name])
test = env.PPAPIBrowserTester( test = env.PPAPIBrowserTester(
'ppapi_gles_book_' + demo + '.out', 'ppapi_gles_book_' + demo + '.out',
url='ppapi_gles_book.html?manifest=' + nmf_name, url='ppapi_gles_book.html?manifest=' + nmf_name,
nmf=nmf_name,
files=[nexe, files=[nexe,
env.File(nmf_name), env.File(nmf_name),
env.File('ppapi_gles_book.html')], env.File('ppapi_gles_book.html')],
......
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_messaging/')
nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH')
...@@ -33,6 +31,7 @@ ppapi_messaging_nexe = env.ComponentProgram(nexe, ...@@ -33,6 +31,7 @@ ppapi_messaging_nexe = env.ComponentProgram(nexe,
# Note that the html is required to run this program. # Note that the html is required to run this program.
dest_copy = env.Replicate('$STAGING_DIR', dest_copy = env.Replicate('$STAGING_DIR',
['ppapi_messaging.html', ['ppapi_messaging.html',
'ppapi_messaging.nmf',
env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
'browserdata/nacltest.js')] 'browserdata/nacltest.js')]
) )
...@@ -40,7 +39,6 @@ env.Depends(nexe, dest_copy) ...@@ -40,7 +39,6 @@ env.Depends(nexe, dest_copy)
node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out',
url='ppapi_messaging.html', url='ppapi_messaging.html',
nmf='${TEST_DIR}/ppapi_messaging.nmf',
files=[ppapi_messaging_nexe, files=[ppapi_messaging_nexe,
env.File('ppapi_messaging.nmf'), env.File('ppapi_messaging.nmf'),
env.File('ppapi_messaging.html')]) env.File('ppapi_messaging.html')])
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
Import('env') Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX']) env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_test_example/')
nexe = 'ppapi_test_example_%s' % env.get('TARGET_FULLARCH') nexe = 'ppapi_test_example_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_test_example${PROGSUFFIX}', env.Alias('ppapi_test_example${PROGSUFFIX}',
...@@ -36,11 +34,11 @@ ppapi_test_example_nexe = env.ComponentProgram( ...@@ -36,11 +34,11 @@ ppapi_test_example_nexe = env.ComponentProgram(
env.Publish(nexe, 'run', env.Publish(nexe, 'run',
['ppapi_test_example.html', ['ppapi_test_example.html',
'ppapi_test_example.nmf',
'ppapi_test_example.js']) 'ppapi_test_example.js'])
node = env.PPAPIBrowserTester('ppapi_test_example_browser_test.out', node = env.PPAPIBrowserTester('ppapi_test_example_browser_test.out',
url='ppapi_test_example.html', url='ppapi_test_example.html',
nmf='${TEST_DIR}/ppapi_test_example.nmf',
files=env.ExtractPublishedFiles(nexe)) files=env.ExtractPublishedFiles(nexe))
env.AddNodeToTestSuite(node, env.AddNodeToTestSuite(node,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment