Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | LINEFMT "%s, line %" PFMT64u ": " |
#define | DO_KEY_STR(key, field) free(test->field.value); |
#define | DO_KEY_STR(key, field) |
#define | DO_KEY_BOOL(key, field) |
#define | DO_KEY_NUM(key, field) |
#define DO_KEY_BOOL | ( | key, | |
field | |||
) |
#define DO_KEY_NUM | ( | key, | |
field | |||
) |
#define DO_KEY_STR | ( | key, | |
field | |||
) | free(test->field.value); |
#define DO_KEY_STR | ( | key, | |
field | |||
) |
|
static |
Definition at line 640 of file load.c.
References eprintf, path, rz_file_exists(), rz_file_is_directory(), rz_list_free(), RZ_NEW, rz_pvector_foreach, rz_pvector_free(), rz_pvector_push(), rz_str_constpool_get(), rz_str_endswith(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), rz_strbuf_setf(), RZ_SYS_DIR, rz_sys_dir(), rz_test_load_asm_test_file(), rz_test_load_cmd_test_file(), rz_test_load_json_test_file(), RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, RZ_TEST_TYPE_JSON, skip_archos(), rz_test_test_database_t::strpool, test_type_for_path(), and rz_test_test_database_t::tests.
Referenced by rz_test_test_database_load().
|
static |
Definition at line 760 of file load.c.
References rz_test_fuzz_test_t::file, free(), path, RZ_NEW, rz_pvector_push(), rz_str_constpool_get(), RZ_TEST_TYPE_FUZZ, strdup(), rz_test_test_database_t::strpool, and rz_test_test_database_t::tests.
Referenced by rz_test_test_database_load_fuzz().
|
static |
Definition at line 273 of file load.c.
References arch, NULL, path, rz_list_free(), rz_list_last(), rz_str_constpool_get(), rz_str_split_duplist(), and RZ_SYS_DIR.
Referenced by rz_test_load_asm_test_file().
Definition at line 53 of file load.c.
References test_evm::end, eprintf, len, setup::line, NULL, readline(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_free(), rz_strbuf_new(), strdup(), and val.
|
static |
Definition at line 24 of file load.c.
References test_evm::end, len, and NULL.
Referenced by read_string_val(), rz_test_load_asm_test_file(), rz_test_load_cmd_test_file(), and rz_test_load_json_test_file().
Definition at line 259 of file load.c.
References RZ_NEW0.
Referenced by rz_test_load_asm_test_file().
Definition at line 14 of file load.c.
References DO_KEY_STR, free(), RZ_CMD_TEST_FOREACH_RECORD, and RZ_CMD_TEST_FOREACH_RECORD_NOP.
Referenced by rz_test_load_cmd_test_file(), and rz_test_test_free().
Definition at line 10 of file load.c.
References RZ_NEW0.
Referenced by rz_test_load_cmd_test_file().
RZ_API void rz_test_fuzz_test_free | ( | RzFuzzTest * | test | ) |
RZ_API void rz_test_json_test_free | ( | RzJsonTest * | test | ) |
Definition at line 474 of file load.c.
References free().
Referenced by rz_test_load_json_test_file(), and rz_test_test_free().
RZ_API RzJsonTest* rz_test_json_test_new | ( | void | ) |
Definition at line 470 of file load.c.
References RZ_NEW0.
Referenced by rz_test_load_json_test_file().
RZ_API RzPVector* rz_test_load_asm_test_file | ( | RzStrConstPool * | strpool, |
const char * | file | ||
) |
Definition at line 313 of file load.c.
References arch, bits(), bytes, cpu, eprintf, fail, free(), hex, setup::line, LINEFMT, malloc(), NULL, parse_asm_path(), readline(), RZ_ASM_TEST_MODE_ASSEMBLE, RZ_ASM_TEST_MODE_BIG_ENDIAN, RZ_ASM_TEST_MODE_BROKEN, RZ_ASM_TEST_MODE_DISASSEMBLE, rz_file_slurp(), rz_hex_str2bin(), rz_pvector_free(), rz_pvector_new(), rz_pvector_push(), rz_str_trim(), rz_test_asm_test_new(), strdup(), and ut64().
Referenced by database_load().
Definition at line 105 of file load.c.
References DO_KEY_BOOL, DO_KEY_NUM, DO_KEY_STR, eprintf, fail, free(), setup::line, LINEFMT, NULL, readline(), RZ_CMD_TEST_FOREACH_RECORD, rz_file_slurp(), rz_pvector_free(), rz_pvector_new(), rz_pvector_push(), rz_test_cmd_test_free(), rz_test_cmd_test_new(), ut64(), and val.
Referenced by database_load().
Definition at line 482 of file load.c.
References eprintf, free(), setup::line, NULL, readline(), rz_file_slurp(), rz_pvector_new(), rz_pvector_push(), rz_str_trim(), rz_test_json_test_free(), rz_test_json_test_new(), strdup(), true, and ut64().
Referenced by database_load().
RZ_API void rz_test_test_database_free | ( | RzTestDatabase * | db | ) |
Definition at line 577 of file load.c.
References free(), rz_pvector_clear(), rz_str_constpool_fini(), rz_test_test_database_t::strpool, and rz_test_test_database_t::tests.
Referenced by rz_test_main().
RZ_API bool rz_test_test_database_load | ( | RzTestDatabase * | db, |
const char * | path | ||
) |
Definition at line 756 of file load.c.
References database_load(), and path.
Referenced by rz_test_main().
RZ_API bool rz_test_test_database_load_fuzz | ( | RzTestDatabase * | db, |
const char * | path | ||
) |
Definition at line 782 of file load.c.
References database_load_fuzz_file(), eprintf, path, rz_file_exists(), rz_file_is_directory(), rz_list_free(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), rz_strbuf_setf(), RZ_SYS_DIR, and rz_sys_dir().
Referenced by rz_test_main().
RZ_API RzTestDatabase* rz_test_test_database_new | ( | void | ) |
Definition at line 567 of file load.c.
References NULL, RZ_NEW, rz_pvector_init(), rz_str_constpool_init(), rz_test_test_free(), rz_test_test_database_t::strpool, and rz_test_test_database_t::tests.
Referenced by rz_test_main().
Definition at line 546 of file load.c.
References free(), rz_test_asm_test_free(), rz_test_cmd_test_free(), rz_test_fuzz_test_free(), rz_test_json_test_free(), RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, and RZ_TEST_TYPE_JSON.
Referenced by rz_test_main(), and rz_test_test_database_new().
Definition at line 617 of file load.c.
References rz_return_val_if_fail, rz_str_endswith(), rz_str_startswith(), and RZ_TEST_ARCH_OS.
Referenced by database_load().
|
static |
Definition at line 586 of file load.c.
References free(), path, rz_list_free(), rz_list_pop(), rz_str_split_list(), RZ_SYS_DIR, RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_JSON, and strdup().
Referenced by database_load().