You've already forked hexagonrpc
mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-02-25 13:13:52 -08:00
The virtual filesystem is important, but is only tested in the full program. Add the initial test for it.
29 lines
714 B
Meson
29 lines
714 B
Meson
valgrind = find_program('valgrind', required : false)
|
|
|
|
if valgrind.found()
|
|
add_test_setup('valgrind', exe_wrapper : valgrind)
|
|
endif
|
|
|
|
test_iobuffer = executable('test_iobuffer',
|
|
'test_iobuffer.c',
|
|
'../hexagonrpcd/iobuffer.c',
|
|
c_args : cflags,
|
|
include_directories : include,
|
|
)
|
|
|
|
sample_file = custom_target('sample_file',
|
|
input : 'sample_file.txt',
|
|
output : 'sample_file.txt',
|
|
command : ['cp', '@INPUT@', '@OUTPUT@']
|
|
)
|
|
test_hexagonfs = executable('test_hexagonfs',
|
|
'test_hexagonfs.c',
|
|
'../hexagonrpcd/hexagonfs.c',
|
|
'../hexagonrpcd/hexagonfs_mapped.c',
|
|
c_args : cflags,
|
|
include_directories : include,
|
|
)
|
|
|
|
test('iobuffer', test_iobuffer)
|
|
test('hexagonfs', test_hexagonfs, args : [sample_file])
|