From 55c518b2922a2d8a41212a952a68c17c7c9a3f8b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 5 Jun 2025 10:50:24 -0400 Subject: pk.h: update to 0.6.0 + handle breaking changes --- tests/pke-test-dummy.cpp | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'tests/pke-test-dummy.cpp') diff --git a/tests/pke-test-dummy.cpp b/tests/pke-test-dummy.cpp index a7e2ddc..0caa865 100644 --- a/tests/pke-test-dummy.cpp +++ b/tests/pke-test-dummy.cpp @@ -1,18 +1,55 @@ #include "./pke-test-dummy.h" +#include "asset-manager.hpp" +#include "camera.hpp" +#include "ecs.hpp" +#include "physics.hpp" +#include "scene.hpp" +#include "static-ui.hpp" +#include "thread-pool.hpp" + int pke_test_dummy_001() { + Physics_Init(); + PkeThreads_Init(); + AM_Init(); + ECS_Init(); + pke_ui_init(); + PkeCamera_Init(); + FontType_Init(); + pke_scene_master_init(); + /* do thing */ + /* + { + AssetHandle h = AM_GetHandle(AssetKey {"fnt_mquin_gly"}); + AM_Get(h); + AM_Release(h); + } + */ + pke_scene_master_teardown(); + FontType_Teardown(); + PkeCamera_Teardown(); + pke_ui_teardown(); + ECS_Teardown(); + AM_Teardown(); + PkeThreads_Teardown(); + Physics_Teardown(); return 0; } struct pke_test_group *pke_test_dummy_get_group() { - static const uint64_t test_count = 1; + static const uint64_t test_count = 2; static struct pke_test tests[test_count] = { { .title = "test 001", .func = pke_test_dummy_001, .expected_result = 0, - } + }, + { + .title = "test 002", + .func = pke_test_dummy_001, + .expected_result = 0, + }, }; static struct pke_test_group group = {}; group.title = "dummy test"; -- cgit v1.2.3