1# -*- python -*- 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 4# found in the LICENSE file. 5 6Import('env') 7 8###################################################################### 9# Smoke Test 10###################################################################### 11nexe = env.ComponentProgram('app_lib_test', 12 'app_lib_test.c', 13 EXTRA_LIBS=['${NONIRT_LIBS}', '${PTHREAD_LIBS}'], 14 ) 15 16# NOTE: we are using the same file as stdin and on the command line 17# 18# app_lib_test exercises stdio, in particular, it uses fopen on the 19# command line argument, so it requires the -a flag to sel_ldr in 20# order to access the filesystem. 21node = env.CommandSelLdrTestNacl( 22 'app_lib_test.out', 23 nexe, 24 args=[env.File('app_lib_test.stdin')], 25 stdin=env.File('app_lib_test.stdin'), 26 stdout_golden=env.File('app_lib_test.stdout'), 27 sel_ldr_flags=['-a'], 28 ) 29 30env.AddNodeToTestSuite(node, ['small_tests'], 'run_app_lib_test') 31