ovni/test/unit/emu.c

33 lines
472 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-30 22:43:57 +01:00
if (emu_connect(&emu) != 0)
die("emu_connect failed\n");
2023-01-20 17:56:36 +01:00
int ret = 0;
while ((ret = emu_step(&emu)) == 0) {
2023-01-27 18:51:18 +01:00
//err("event clock %ld\n", emu.player.deltaclock);
2023-01-20 17:56:36 +01:00
}
if (ret < 0)
die("emu_step failed\n");
2023-01-17 19:24:01 +01:00
return 0;
}