Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | crlf2lf(x) (x) |
#define | JQ_CMD "jq" |
|
static |
Definition at line 113 of file run.c.
References args, files, free(), NULL, out, rz_pvector_clear(), rz_pvector_init(), rz_pvector_len(), and rz_pvector_push().
Referenced by rz_test_run_cmd_test(), rz_test_run_fuzz_test(), and rz_test_run_json_test().
RZ_API void rz_test_asm_test_output_free | ( | RzAsmTestOutput * | out | ) |
Definition at line 468 of file run.c.
References RZ_ASM_TEST_MODE_BROKEN, RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, RZ_TEST_TYPE_JSON, and true.
Referenced by rz_test_run_test().
RZ_API bool rz_test_check_asm_test | ( | RzAsmTestOutput * | out, |
RzAsmTest * | test | ||
) |
Definition at line 389 of file run.c.
References out, RZ_ASM_TEST_MODE_ASSEMBLE, and RZ_ASM_TEST_MODE_DISASSEMBLE.
Referenced by rz_test_run_test().
RZ_API bool rz_test_check_cmd_test | ( | RzSubprocessOutput * | out, |
RzCmdTest * | test | ||
) |
Definition at line 204 of file run.c.
References out, and rz_test_cmp_cmd_output().
Referenced by rz_test_run_test().
RZ_API bool rz_test_check_fuzz_test | ( | RzSubprocessOutput * | out | ) |
Definition at line 223 of file run.c.
References args, JQ_CMD, NULL, proc, rz_subprocess_free(), rz_subprocess_ret(), rz_subprocess_start(), rz_subprocess_stdin_write(), rz_subprocess_wait(), and UT64_MAX.
Referenced by rz_test_main().
RZ_API bool rz_test_check_json_test | ( | RzSubprocessOutput * | out, |
RzJsonTest * | test | ||
) |
Definition at line 254 of file run.c.
References args, JQ_CMD, NULL, out, proc, rz_subprocess_free(), rz_subprocess_ret(), rz_subprocess_start(), rz_subprocess_stdin_write(), rz_subprocess_wait(), and UT64_MAX.
Referenced by rz_test_run_test().
RZ_API bool rz_test_cmp_cmd_output | ( | const char * | output, |
const char * | expect, | ||
const char * | regexp | ||
) |
Definition at line 192 of file run.c.
References expect, output, RZ_FREE, rz_list_free(), rz_list_to_str(), and rz_regex_get_match_list().
Referenced by print_result_diff(), and rz_test_check_cmd_test().
RZ_API RzAsmTestOutput* rz_test_run_asm_test | ( | RzTestRunConfig * | config, |
RzAsmTest * | test | ||
) |
Definition at line 267 of file run.c.
References args, bits(), bytes, crlf2lf, free(), hex, malloc(), NULL, out, PFMT64x, proc, rip(), RZ_ASM_TEST_MODE_ASSEMBLE, RZ_ASM_TEST_MODE_BIG_ENDIAN, RZ_ASM_TEST_MODE_DISASSEMBLE, rz_hex_bin2strdup(), rz_hex_str2bin(), RZ_NEW0, rz_pvector_clear(), rz_pvector_init(), rz_pvector_len(), rz_pvector_pop(), rz_pvector_push(), rz_snprintf(), rz_str_trim(), rz_subprocess_err(), rz_subprocess_free(), rz_subprocess_kill(), rz_subprocess_out(), rz_subprocess_ret(), rz_subprocess_start(), RZ_SUBPROCESS_TIMEDOUT, rz_subprocess_wait(), and snprintf.
Referenced by rz_test_run_test().
RZ_API RzSubprocessOutput* rz_test_run_cmd_test | ( | RzTestRunConfig * | config, |
RzCmdTest * | test, | ||
RzTestCmdRunner | runner, | ||
void * | user | ||
) |
Definition at line 161 of file run.c.
References files, NULL, out, run_rz_test(), rz_list_delete(), rz_list_free(), rz_list_new(), rz_list_push(), rz_str_split_duplist(), and ut64().
Referenced by print_result_diff(), and rz_test_run_test().
RZ_API RzSubprocessOutput* rz_test_run_fuzz_test | ( | RzTestRunConfig * | config, |
RzFuzzTest * | test, | ||
RzTestCmdRunner | runner, | ||
void * | user | ||
) |
Definition at line 433 of file run.c.
References cmd, files, NULL, run_rz_test(), rz_list_free(), rz_list_new(), rz_list_push(), and rz_str_endswith().
Referenced by print_result_diff(), and rz_test_run_test().
RZ_API RzSubprocessOutput* rz_test_run_json_test | ( | RzTestRunConfig * | config, |
RzJsonTest * | test, | ||
RzTestCmdRunner | runner, | ||
void * | user | ||
) |
Definition at line 246 of file run.c.
References files, NULL, run_rz_test(), rz_list_free(), rz_list_new(), and rz_list_push().
Referenced by rz_test_run_test().
RZ_API RzTestResultInfo* rz_test_run_test | ( | RzTestRunConfig * | config, |
RzTest * | test | ||
) |
Definition at line 482 of file run.c.
References rz_test_test_result_info_t::asm_out, NULL, out, rz_test_test_result_info_t::proc_out, rz_test_test_result_info_t::result, rz_test_test_result_info_t::run_failed, RZ_NEW0, rz_test_broken(), rz_test_check_asm_test(), rz_test_check_cmd_test(), rz_test_check_fuzz_test(), rz_test_check_json_test(), RZ_TEST_RESULT_BROKEN, RZ_TEST_RESULT_FAILED, RZ_TEST_RESULT_FIXED, RZ_TEST_RESULT_OK, rz_test_run_asm_test(), rz_test_run_cmd_test(), rz_test_run_fuzz_test(), rz_test_run_json_test(), RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, RZ_TEST_TYPE_JSON, rz_time_now_mono(), start_time, subprocess_runner(), rz_test_test_result_info_t::test, test_customized_mnem::test(), rz_test_test_result_info_t::time_elapsed, rz_test_test_result_info_t::timeout, and ut64().
Referenced by worker_th().
Definition at line 451 of file run.c.
References NULL, rz_str_newf(), RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, RZ_TEST_TYPE_JSON, and strdup().
Referenced by print_new_results().
RZ_API void rz_test_test_result_info_free | ( | RzTestResultInfo * | result | ) |
Definition at line 552 of file run.c.
References rz_test_test_result_info_t::asm_out, free(), rz_test_test_result_info_t::proc_out, rz_subprocess_output_free(), rz_test_asm_test_output_free(), RZ_TEST_TYPE_ASM, RZ_TEST_TYPE_CMD, RZ_TEST_TYPE_FUZZ, RZ_TEST_TYPE_JSON, rz_test_test_result_info_t::test, and rz_test_test_t::type.
Referenced by rz_test_main().
|
static |
Definition at line 27 of file run.c.
References args, crlf2lf, NULL, out, proc, r, rz_subprocess_drain(), rz_subprocess_free(), rz_subprocess_kill(), rz_subprocess_start(), RZ_SUBPROCESS_TIMEDOUT, and rz_subprocess_wait().
Referenced by rz_test_run_test().