9 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
10 #define RZ_TEST_OS "freebsd"
11 #elif defined(__linux__)
12 #define RZ_TEST_OS "linux"
13 #elif defined(__APPLE__)
14 #define RZ_TEST_OS "darwin"
16 #define RZ_TEST_OS "windows"
18 #define RZ_TEST_OS "unknown"
22 #define RZ_TEST_ARCH "x86"
24 #define RZ_TEST_ARCH "x64"
26 #define RZ_TEST_ARCH "arm"
28 #define RZ_TEST_ARCH "arm64"
30 #define RZ_TEST_ARCH "unknown"
33 #define RZ_TEST_ARCH_OS RZ_TEST_OS "-" RZ_TEST_ARCH
73 #define RZ_CMD_TEST_FOREACH_RECORD_NOP(name, field)
74 #define RZ_CMD_TEST_FOREACH_RECORD(macro_str, macro_bool, macro_int) \
75 macro_str ("NAME", name) \
76 macro_str ("FILE", file) \
77 macro_str ("ARGS", args) \
78 macro_int ("TIMEOUT", timeout) \
79 macro_str ("SOURCE", source) \
80 macro_str ("CMDS", cmds) \
81 macro_str ("EXPECT", expect) \
82 macro_str ("EXPECT_ERR", expect_err) \
83 macro_str ("REGEXP_FILTER_OUT", regexp_out) \
84 macro_str ("REGEXP_FILTER_ERR", regexp_err) \
85 macro_bool ("BROKEN", broken)
198 const char *envvars[],
const char *envvals[],
size_t env_size,
ut64 timeout_ms,
void *user);
const lzma_allocator const uint8_t size_t uint8_t * out
static static fork const void static count static fd const char const char static newpath const char static path const char path
#define expect(expr, value)
enum rz_test_test_result_t RzTestResult
RZ_API bool rz_test_check_asm_test(RzAsmTestOutput *out, RzAsmTest *test)
struct rz_test_cmd_test_num_record RzCmdTestNumRecord
RZ_API RzJsonTest * rz_test_json_test_new(void)
RZ_API RzTestResultInfo * rz_test_run_test(RzTestRunConfig *config, RzTest *test)
enum rz_test_test_type_t RzTestType
RZ_API RzSubprocessOutput * rz_test_run_cmd_test(RzTestRunConfig *config, RzCmdTest *test, RzTestCmdRunner runner, void *user)
RZ_API RzPVector * rz_test_load_cmd_test_file(const char *file)
RZ_API bool rz_test_test_database_load(RzTestDatabase *db, const char *path)
RZ_API bool rz_test_check_jq_available(void)
RZ_API RzSubprocessOutput * rz_test_run_json_test(RzTestRunConfig *config, RzJsonTest *test, RzTestCmdRunner runner, void *user)
RZ_API RzTestDatabase * rz_test_test_database_new(void)
struct rz_test_json_test_t RzJsonTest
RZ_API RzAsmTestOutput * rz_test_run_asm_test(RzTestRunConfig *config, RzAsmTest *test)
struct rz_test_test_database_t RzTestDatabase
struct rz_test_test_result_info_t RzTestResultInfo
RzSubprocessOutput *(* RzTestCmdRunner)(const char *file, const char *args[], size_t args_size, const char *envvars[], const char *envvals[], size_t env_size, ut64 timeout_ms, void *user)
RZ_API void rz_test_test_database_free(RzTestDatabase *db)
RZ_API RzCmdTest * rz_test_cmd_test_new(void)
struct rz_test_test_t RzTest
RZ_API RzPVector * rz_test_load_json_test_file(const char *file)
RZ_API bool rz_test_check_json_test(RzSubprocessOutput *out, RzJsonTest *test)
RZ_API void rz_test_test_free(RzTest *test)
RZ_API bool rz_test_test_database_load_fuzz(RzTestDatabase *db, const char *path)
RZ_API RzAsmTest * rz_test_asm_test_new(void)
RZ_API void rz_test_json_test_free(RzJsonTest *test)
RZ_API bool rz_test_cmp_cmd_output(const char *output, const char *expect, const char *regexp)
struct rz_test_run_config_t RzTestRunConfig
RZ_API void rz_test_cmd_test_free(RzCmdTest *test)
RZ_API RzPVector * rz_test_load_asm_test_file(RzStrConstPool *strpool, const char *file)
struct rz_test_cmd_test_string_record RzCmdTestStringRecord
RZ_API RzSubprocessOutput * rz_test_run_fuzz_test(RzTestRunConfig *config, RzFuzzTest *test, RzTestCmdRunner runner, void *user)
RZ_API bool rz_test_check_cmd_test(RzSubprocessOutput *out, RzCmdTest *test)
struct rz_test_asm_test_t RzAsmTest
RZ_API void rz_test_test_result_info_free(RzTestResultInfo *result)
struct rz_test_asm_test_output_t RzAsmTestOutput
struct rz_test_cmd_test_t RzCmdTest
enum rz_test_asm_test_mode_t RzAsmTestMode
RZ_API void rz_test_asm_test_output_free(RzAsmTestOutput *out)
RZ_API bool rz_test_check_fuzz_test(RzSubprocessOutput *out)
struct rz_test_fuzz_test_t RzFuzzTest
RZ_API bool rz_test_test_broken(RzTest *test)
struct rz_test_cmd_test_bool_record RzCmdTestBoolRecord
@ RZ_ASM_TEST_MODE_BIG_ENDIAN
@ RZ_ASM_TEST_MODE_BROKEN
@ RZ_ASM_TEST_MODE_ASSEMBLE
@ RZ_ASM_TEST_MODE_DISASSEMBLE
RZ_API char * rz_test_test_name(RzTest *test)
RZ_API void rz_test_asm_test_free(RzAsmTest *test)
RzCmdTestStringRecord expect
RzCmdTestNumRecord timeout
RzCmdTestStringRecord regexp_out
RzCmdTestStringRecord regexp_err
RzCmdTestStringRecord file
RzCmdTestStringRecord source
RzCmdTestStringRecord expect_err
RzCmdTestStringRecord args
RzCmdTestBoolRecord broken
RzCmdTestStringRecord cmds
RzCmdTestStringRecord name
const char * json_test_file
RzAsmTestOutput * asm_out
RzSubprocessOutput * proc_out
ut64(WINAPI *w32_GetEnabledXStateFeatures)()