'lib/strutils.c',
c_args : ['-DTEST_PROGRAM_STRUTILS'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe
exe = executable(
'test_path',
'lib/path.c',
- 'lib/fileutils.c',
- have_cpu_set_t ? 'lib/cpuset.c' : [],
c_args : ['-DTEST_PROGRAM_PATH'],
include_directories : dir_include,
link_with : lib_common,
'lib/cpuset.c',
c_args : ['-DTEST_PROGRAM_CPUSET'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe
exe = executable(
'test_sysfs',
'lib/sysfs.c',
- 'lib/path.c',
- 'lib/buffer.c',
- 'lib/mbsalign.c',
- 'lib/fileutils.c',
- have_cpu_set_t ? 'lib/cpuset.c' : [],
c_args : ['-DTEST_PROGRAM_SYSFS'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe
'lib/fileutils.c',
c_args : ['-DTEST_PROGRAM_FILEUTILS'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe
'lib/canonicalize.c',
c_args : ['-DTEST_PROGRAM_CANONICALIZE'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe
exe = executable(
'test_timeutils',
'lib/timeutils.c',
- 'lib/strutils.c',
c_args : ['-DTEST_PROGRAM_TIMEUTILS'],
include_directories : dir_include,
+ link_with : lib_common,
build_by_default: program_tests)
if not is_disabler(exe)
exes += exe