| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 env.Prepend(CPPDEFINES=['XP_UNIX']) | 9 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 10 | 10 |
| 11 | 11 |
| 12 ###################################################################### | 12 ###################################################################### |
| 13 # REPLAY TESTS | 13 # REPLAY TESTS |
| 14 ###################################################################### | 14 ###################################################################### |
| 15 TESTS = [('audio', ('audio',)), | 15 TESTS = [('audio', ('audio',)), |
| 16 ('graphics2d',('graphics2d',)), | 16 ('graphics2d',('graphics2d',)), |
| 17 ('event', ('event',)), | 17 ('event', ('event',)), |
| 18 ('file', ('file1', 'file2')), | 18 ('file', ('file1', 'file2')), |
| 19 ] | 19 ] |
| 20 | 20 |
| 21 for test_exe, test_inputs in TESTS: | 21 for test_exe, test_inputs in TESTS: |
| 22 nexe = env.ComponentProgram('ppapi_simple_' + test_exe, | 22 nexe = env.ComponentProgram('ppapi_simple_' + test_exe, |
| 23 [test_exe + '.cc'], | 23 [test_exe + '.cc'], |
| 24 EXTRA_LIBS=['${PPAPI_LIBS}', | 24 EXTRA_LIBS=['ppapi', |
| 25 'ppapi_cpp', | 25 'ppapi_cpp', |
| 26 'platform', | 26 'platform', |
| 27 'gio', | 27 'gio', |
| 28 'pthread', | 28 'pthread', |
| 29 'm', | 29 'm', |
| 30 ]) | 30 ]) |
| 31 | 31 |
| 32 for test in test_inputs: | 32 for test in test_inputs: |
| 33 node = env.SelUniversalTest( | 33 node = env.SelUniversalTest( |
| 34 'ppapi_simple_' + test + '.out', | 34 'ppapi_simple_' + test + '.out', |
| (...skipping 27 matching lines...) Expand all Loading... |
| 62 'test.txt', # c.f. ppapi_emu_file.stdin | 62 'test.txt', # c.f. ppapi_emu_file.stdin |
| 63 env.File('test.txt'), | 63 env.File('test.txt'), |
| 64 ], | 64 ], |
| 65 uses_ppapi=True, | 65 uses_ppapi=True, |
| 66 stdout_golden=env.File('ppapi_emu_file.stdout'), | 66 stdout_golden=env.File('ppapi_emu_file.stdout'), |
| 67 ) | 67 ) |
| 68 | 68 |
| 69 env.AddNodeToTestSuite(node, | 69 env.AddNodeToTestSuite(node, |
| 70 ['small_tests', 'sel_ldr_tests'], | 70 ['small_tests', 'sel_ldr_tests'], |
| 71 'run_ppapi_emu_file_test') | 71 'run_ppapi_emu_file_test') |
| OLD | NEW |