summaryrefslogtreecommitdiff
path: root/tests/pke-test-dummy.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-06-05 10:50:24 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-06-05 10:50:24 -0400
commit55c518b2922a2d8a41212a952a68c17c7c9a3f8b (patch)
tree31cc135bc18bf11893d5ca3bca47c9ee27bf141f /tests/pke-test-dummy.cpp
parentb0b1159780311c7c8ca9a9d41d11794e91e8895c (diff)
pk.h: update to 0.6.0 + handle breaking changes
Diffstat (limited to 'tests/pke-test-dummy.cpp')
-rw-r--r--tests/pke-test-dummy.cpp41
1 files changed, 39 insertions, 2 deletions
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";