rizin/test/unit/meson.build
Quentin Minster 700c7d898b
Serialize seek history (#3838)
* Save/load seek history ##projects

* Add unit test for seek history serialization

* Bump project version to 15 for seek history serialization
2023-09-10 21:30:30 +08:00

156 lines
2.9 KiB
Meson

if get_option('enable_tests')
test_conf_data = configuration_data()
test_conf_data.set_quoted('TEST_BUILD_TYPES_DIR', fs.as_posix(types_build_dir))
test_config_h = configure_file(
input: 'test_config.h.in',
output: 'test_config.h',
configuration: test_conf_data,
)
subdir('auxiliary')
tests = [
'addr_interval',
'agraph',
'analysis_block',
'analysis_cc',
'analysis_class_graph',
'analysis_function',
'analysis_hints',
'analysis_meta',
'analysis_op',
'analysis_var',
'analysis_xrefs',
'annotated_code',
'base64',
'big',
'bin_lines',
'bin_mach0',
'bitvector',
'buf',
'cmd',
'compare',
'config',
'cons',
'contrbtree',
'core_analysis_stats',
'core_bin',
'core_cmd',
'core_seek',
'core_task',
'crypto',
'debruijn',
'debug',
'debug_session',
'diff',
'ebcdic',
'endian',
'event',
'file',
'flags',
'flirt',
'float',
'glob',
'graph',
'hash',
'hex',
'id_storage',
'idpool',
'idstorage',
'inflate_deflate',
'il_definitions',
'il_reg',
'il_validate',
'il_vm',
'intervaltree',
'io',
'io_ihex',
'itv',
'json',
'list',
'log',
'lzma',
'ovf',
'pj',
'rbtree',
'reg',
'regex',
'run',
'rz_test',
'sdb_array',
'sdb_diff',
'sdb_hash',
'sdb_ls',
'sdb_sdb',
'sdb_util',
'serialize_analysis',
'serialize_config',
'serialize_debug',
'serialize_flag',
'serialize_seek',
'serialize_spaces',
'serialize_types',
'skiplist',
'skyline',
'socket',
'spaces',
'sparse',
'stack',
'str',
'strbuf',
'str_search',
'subprocess',
'table',
'task',
'threads',
'tokens',
'tree',
'type',
'uleb128',
'unum',
'util',
'vector',
'yank',
]
unit_test_env = environment()
if test_env_common_path != []
unit_test_env.prepend('PATH', test_env_common_path)
endif
foreach test : tests
exe = executable('test_@0@'.format(test), 'test_@0@.c'.format(test),
include_directories: [platform_inc, '.'],
dependencies: [
rz_util_dep,
rz_main_dep,
rz_socket_dep,
rz_core_dep,
rz_io_dep,
rz_bin_dep,
rz_flag_dep,
rz_cons_dep,
rz_asm_dep,
rz_debug_dep,
rz_config_dep,
rz_bp_dep,
rz_reg_dep,
rz_syscall_dep,
rz_type_dep,
rz_analysis_dep,
rz_parse_dep,
rz_egg_dep,
rz_search_dep,
rz_hash_dep,
rz_crypto_dep,
rz_magic_dep,
rz_il_dep,
lrt,
],
install: false,
install_rpath: rpath_exe,
implicit_include_directories: false,
)
test(test, exe, workdir: join_paths(meson.current_source_dir(), '..'), env: unit_test_env, depends: [auxiliaries, types_files], suite: 'unit')
endforeach
endif