| # -*- python -*- |
| # Copyright (c) 2012 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') |
| |
| srpc_mf_obj = env.ComponentObject('srpc_manifest_file_test.o', |
| 'srpc_manifest_file_test.c') |
| srpc_mf_nexe_name = env.ProgramNameForNmf('srpc_manifest_file_test') |
| srpc_mf_nexe = env.ComponentProgram(srpc_mf_nexe_name, |
| srpc_mf_obj, |
| EXTRA_LIBS=[ |
| 'srpc', |
| 'platform', |
| 'gio', |
| 'imc', |
| 'imc_syscalls', |
| '${NONIRT_LIBS}', |
| '${PTHREAD_LIBS}']) |
| env.Publish(srpc_mf_nexe_name, 'run', |
| ['srpc_manifest_file_test.html', 'test_file.txt']) |
| |
| # sel_universal test |
| |
| node = env.SelUniversalTest( |
| 'srpc_manifest_file_test.out', |
| srpc_mf_nexe, |
| sel_universal_flags=['--uses_reverse_service', |
| '--var', 'obj_file', srpc_mf_obj, |
| '--var', 'nexe_file', srpc_mf_nexe, |
| '--command_file', |
| env.File('srpc_manifest_file_test.stdin')], |
| stdout_golden=env.File('srpc_manifest_file_test.stdout'), |
| ) |
| env.AddNodeToTestSuite(node, |
| ['small_tests'], |
| 'run_srpc_manifest_file_test') |