ovni/test/unit/emu.c

30 lines
409 B
C
Raw Normal View History

2023-01-17 19:24:01 +01:00
#include "emu/emu.h"
#include "common.h"
int main(void)
{
char *argv[] = {
"ovniemu",
"/home/ram/bsc/ovni/traces/test/ovni",
NULL
};
int argc = 2;
struct emu emu;
if (emu_init(&emu, argc, argv) != 0)
die("emu_init failed\n");
2023-01-20 17:56:36 +01:00
int ret = 0;
while ((ret = emu_step(&emu)) == 0) {
err("event clock %ld\n", emu.player.deltaclock);
}
if (ret < 0)
die("emu_step failed\n");
2023-01-17 19:24:01 +01:00
return 0;
}