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.
10 env.DualLibrary('gio',
19 gtest_env = env.MakeGTestEnv()
21 gtest_env.DualLibrary('gio_test', ['gio_test_base.cc'])
23 gio_mem_test_exe = gtest_env.ComponentProgram(
26 EXTRA_LIBS=['gio', 'gio_test'])
28 node = gtest_env.CommandTest(
29 'gio_mem_test_output.xml.out',
30 command=[gio_mem_test_exe, '--gtest_output=xml:${TARGET}'])
31 gtest_env.AddNodeToTestSuite(node, ['small_tests'],
34 gio_test_exe = gtest_env.ComponentProgram(
37 EXTRA_LIBS=['gio', 'platform', 'gio_test'])
39 # temp file will be removed by gio_test (if it compiles and test completes).
40 temp_path = env.MakeEmptyFile(prefix='tmp_gio', suffix='.tmp')
42 node = gtest_env.CommandTest(
43 'gio_test_output.xml.out',
44 command=[gio_test_exe,
45 '--gtest_output=xml:${TARGET}',
47 # Note: to regenerate the premade_text/binary_file, use "make_premade.py"
48 '-x', env.File('premade_text_file'),
49 '-b', env.File('premade_binary_file'),
52 gtest_env.AddNodeToTestSuite(node, ['small_tests'],
55 gio_test_exe = gtest_env.ComponentProgram(
58 EXTRA_LIBS=['gio', 'platform', 'gio_test'])
60 # temp file will be removed by gio_pio_test (if it compiles and completes).
61 temp_path = env.MakeEmptyFile(prefix='tmp_gio_pio', suffix='.tmp')
63 node = gtest_env.CommandTest(
64 'gio_pio_test_output.xml.out',
65 command=[gio_test_exe,
66 '--gtest_output=xml:${TARGET}',
68 # Note: to regenerate the premade_text/binary_file, use "make_premade.py"
69 '-x', env.File('premade_text_file'),
70 '-b', env.File('premade_binary_file'),
73 gtest_env.AddNodeToTestSuite(node, ['small_tests'],
76 gprintf_test_exe = env.ComponentProgram(
81 node = env.CommandTest(
83 command=[gprintf_test_exe],
84 stdout_golden=env.File('testdata/gprintf_test.stdout'))
86 env.AddNodeToTestSuite(node, ['small_tests'], 'run_gprintf_test')