2 # Copyright (c) 2014 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.
10 # TODO(dyen): Currently IRT extensions only supports newlib.
11 if env.Bit('bitcode') or env.Bit('nacl_glibc'):
22 IRT_EXT_LIBC_TEST_SRCS = [
27 'libc/thread_tests.c',
30 irt_ext_libc_test_nexe = env.ComponentProgram(
33 IRT_EXT_LIBC_TEST_SRCS),
34 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}'])
36 node = env.CommandSelLdrTestNacl('irt_ext_libc_test.out',
37 irt_ext_libc_test_nexe)
39 env.AddNodeToTestSuite(node, ['small_tests'],
40 'run_irt_ext_libc_test',
41 # The thread related tests are flaky on mac asan.
42 is_broken=(env.Bit('asan') and env.Bit('host_mac')))
44 irt_ext_no_pthread_nexe = env.ComponentProgram(
45 'irt_ext_no_pthread_test',
46 'no_pthread_test/no_pthread_test.c',
47 EXTRA_LIBS=['${NONIRT_LIBS}'])
49 node = env.CommandSelLdrTestNacl('irt_ext_no_pthread_test.out',
50 irt_ext_no_pthread_nexe)
52 env.AddNodeToTestSuite(node, ['small_tests'],
53 'run_irt_ext_no_pthread_test')