Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2603)

Unified Diff: ppapi/native_client/tests/ppapi_simple_tests/nacl.scons

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/tests/ppapi_simple_tests/nacl.scons
===================================================================
--- ppapi/native_client/tests/ppapi_simple_tests/nacl.scons (revision 0)
+++ ppapi/native_client/tests/ppapi_simple_tests/nacl.scons (revision 0)
@@ -0,0 +1,71 @@
+# -*- 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.
+
+
+Import('env')
+
+env.Prepend(CPPDEFINES=['XP_UNIX'])
+
+
+######################################################################
+# REPLAY TESTS
+######################################################################
+TESTS = [('audio', ('audio',)),
+ ('graphics2d',('graphics2d',)),
+ ('event', ('event',)),
+ ('file', ('file1', 'file2')),
+ ]
+
+for test_exe, test_inputs in TESTS:
+ nexe = env.ComponentProgram('ppapi_simple_' + test_exe,
+ [test_exe + '.cc'],
+ EXTRA_LIBS=['${PPAPI_LIBS}',
+ 'ppapi_cpp',
+ 'platform',
+ 'gio',
+ 'pthread',
+ 'm',
+ ])
+
+ for test in test_inputs:
+ node = env.SelUniversalTest(
+ 'ppapi_simple_' + test + '.out',
+ nexe,
+ sel_universal_flags=[
+ '--silence_nexe',
+ '--command_file',
+ env.File('sel_universal_ppapi_replay_prolog.stdin'),
+ '--command_file',
+ env.File(test +'.stdin'),
+ ],
+ uses_ppapi=True,
+ stdout_golden=env.File(test + '.stdout'),
+ )
+
+ env.AddNodeToTestSuite(node,
+ ['small_tests', 'sel_ldr_tests'],
+ 'run_ppapi_simple_' + test + '_test')
+
+######################################################################
+# EMULATOR TESTS
+######################################################################
+node = env.SelUniversalTest(
+ 'ppapi_emu_file.out',
+ env.File('ppapi_simple_file${PROGSUFFIX}'),
+ sel_universal_flags=[
+ '--silence_nexe',
+ '--command_file',
+ env.File('ppapi_emu_file.stdin'),
+ '--url_alias',
+ 'test.txt', # c.f. ppapi_emu_file.stdin
+ env.File('test.txt'),
+ ],
+ uses_ppapi=True,
+ stdout_golden=env.File('ppapi_emu_file.stdout'),
+ )
+
+env.AddNodeToTestSuite(node,
+ ['small_tests', 'sel_ldr_tests'],
+ 'run_ppapi_emu_file_test')

Powered by Google App Engine
This is Rietveld 408576698