mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 04:49:41 -07:00
raddbg: stepping regression tests
This commit is contained in:
1 parent
685c408a13
commit
8564884d76
11 files changed
+162
-18
No files matched your search
@@ -168,7 +168,7 @@ t_run_caller(void *raw_ctx)
|
||||
if (ctx->test->skip) {
|
||||
ctx->result.status = TestStatus_Skip;
|
||||
} else {
|
||||
ctx->test->test_fn(scratch.arena, &ctx->result, &test_out);
|
||||
ctx->test->test_fn(scratch.arena, ctx->cmdline, g_wdir, &ctx->result, &test_out);
|
||||
}
|
||||
|
||||
if (ctx->result.status == TestStatus_Fail || ctx->result.status == TestStatus_Crash) {
|
||||
@@ -187,9 +187,9 @@ t_run_caller(void *raw_ctx)
|
||||
}
|
||||
|
||||
internal TestResult
|
||||
t_run(TestInfo *test, String8 user_data)
|
||||
t_run(CmdLine *cmdline, TestInfo *test, String8 user_data)
|
||||
{
|
||||
T_RunCtx ctx = { .test = test, .user_data = user_data, .result.status = TestStatus_Fail };
|
||||
T_RunCtx ctx = { .test = test, .cmdline = cmdline, .user_data = user_data, .result.status = TestStatus_Fail };
|
||||
t_run_caller(&ctx);
|
||||
|
||||
if (ctx.result.status == TestStatus_Fail || ctx.result.status == TestStatus_Crash) {
|
||||
@@ -1290,7 +1290,7 @@ t_entry_point(CmdLine *cmdline)
|
||||
|
||||
// run test
|
||||
U64 run_start_time = now_time_us();
|
||||
TestResult result = t_run(test, str8_zero());
|
||||
TestResult result = t_run(cmdline, test, str8_zero());
|
||||
U64 run_end_time = now_time_us();
|
||||
|
||||
// update
|
||||
|
||||
@@ -13,8 +13,9 @@
|
||||
|
||||
typedef struct
|
||||
{
|
||||
TestInfo *test;
|
||||
String8 user_data;
|
||||
TestInfo *test;
|
||||
CmdLine *cmdline;
|
||||
String8 user_data;
|
||||
TestResult result;
|
||||
} T_RunCtx;
|
||||
|
||||
@@ -47,7 +48,7 @@ internal String8 t_make_file_path(Arena *arena, String8 name);
|
||||
// test runner
|
||||
internal void t_run_caller(void *raw_ctx);
|
||||
internal void t_run_fail_handler(void *raw_ctx);
|
||||
internal TestResult t_run(TestInfo *test, String8 user_data);
|
||||
internal TestResult t_run(CmdLine *cmdline, TestInfo *test, String8 user_data);
|
||||
|
||||
// tools
|
||||
internal String8 t_radbin_path(void);
|
||||
|
||||
Reference in new issue
Block a user