Ejemplo n.º 1
0
int main()
{
	Core_init();

    const UnitTest tests[] =
    {
        unit_test(test_c64_vice_init),
        unit_test(test_c64_vice_fail_connect),
        unit_test(test_c64_vice_connect),
        unit_test(test_c64_vice_start_executable),
        unit_test(test_c64_vice_get_registers),
        unit_test(test_c64_vice_step_cpu),
        unit_test(test_c64_vice_get_disassembly),
        unit_test(test_c64_vice_get_memory),
        unit_test(test_c64_vice_basic_breakpoint),
        unit_test(test_c64_vice_breakpoint_cond),
        unit_test(test_c64_vice_callstack),
        //unit_test(test_c64_vice_set_memory),
    };

    int test = run_tests(tests);

    if (s_viceHandle)
        Process_kill(s_viceHandle);

    return test;
}
Ejemplo n.º 2
0
int main() {
    Core_init();

    g_pluginUI = new BgfxPluginUI;

    const UnitTest tests[] =
    {
        unit_test(create_null_session),
        unit_test(session_add_plugins),
        unit_test(session_delete_plugins),
        unit_test(session_test_many),
        unit_test(session_save_plugin_state),
    };

    return run_tests(tests);
}
Ejemplo n.º 3
0
int main() {
    log_set_level(LOG_NONE);
    Core_init();

    const UnitTest tests[] =
    {
        unit_test(plugin_handler_null_base_path),
        unit_test(plugin_handler_null_plugin),
        unit_test(plugin_handler_dummy_paths),
        unit_test(plugin_handler_add_plugin),
        unit_test(plugin_handler_add_plugin_true),
        unit_test(plugin_handler_find_plugin),
        unit_test(test_load_file_ok),
        unit_test(test_load_file_fail),
        unit_test(test_commands),
        unit_test(test_file_notification),
        unit_test(test_settings),
    };

    return run_tests(tests);
}