Add simple integration tests

This commit is contained in:
2026-04-28 22:12:50 +01:00
parent f25548085f
commit 0e3b70f7d3
2 changed files with 81 additions and 0 deletions

View File

@@ -109,6 +109,20 @@ namespace GTETest {
GTE::set_geom_screen(256);
}
static void check_values() {
static constexpr int32_t Value = 256;
GTE::set_geom_screen(Value);
printf("set_geom_screen: %i == %i\n", GTE::get_geom_screen(), Value);
int32_t x = 256;
int32_t y = 512;
GTE::set_geom_offset(x, y);
GTE::get_geom_offset(x, y);
printf("%i == 256 && %i == 512\n", x, y);
}
static bool update_or_exit() {
Periphery::query_controller();
if(Shared::back_menu.update(Make::PositionI16(0, GPU::Display::Height - 32))) {
@@ -154,6 +168,7 @@ namespace GTETest {
void main() {
setup();
check_values();
while(true) {
if(update_or_exit()) {