Port to latest orion-ui and expand test coverage - #43
Conversation
Agent-Logs-Url: https://github.com/corepunch/doom-ed/sessions/de6df3c8-900d-4e67-ac8d-360d961342d2 Co-authored-by: corepunch <83646194+corepunch@users.noreply.github.com>
Agent-Logs-Url: https://github.com/corepunch/doom-ed/sessions/de6df3c8-900d-4e67-ac8d-360d961342d2 Co-authored-by: corepunch <83646194+corepunch@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Ports DOOM-ED to the latest orion-ui submodule API by updating drawing call sites/prototypes, and expands the repo’s standalone C test suites while wiring them into make test.
Changes:
- Updated
fill_rect/draw_rect/draw_rect_exdeclarations and relevant call sites to use pass-by-valuerect_t. - Added new standalone test executables (
collision_test,wad_test) and wired them (plus existingbsp_test) into thetestandcleanMakefile targets. - Updated
.gitignoreto ignore the new test binaries.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tests/wad_test.c |
Adds a standalone test binary for WAD parsing helpers and struct layout. |
tests/collision_test.c |
Adds a standalone test binary for collision geometry helper functions. |
mapview/map.h |
Updates draw function prototypes for new orion-ui API; removes window_title_bar_y (and currently also removes get_window_item). |
editor/windows/things.c |
Updates draw_rect call site to pass rect_t by value. |
editor/windows/sprite.c |
Updates draw_button/draw_rect call sites to pass rect_t by value. |
Makefile |
Adds new test targets and runs them under make test; updates clean accordingly. |
.gitignore |
Ignores the newly added test binaries. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@copilot Building liborion via ui/Makefile... |
Agent-Logs-Url: https://github.com/corepunch/doom-ed/sessions/4d0d5bc8-be34-4e77-b9b6-1e10ce95e0a5 Co-authored-by: corepunch <83646194+corepunch@users.noreply.github.com>
The CI failure was caused by bugs in the latest orion-ui |
|
@copilot Building liborion via ui/Makefile... make sure build succeeds before finishing work |
Agent-Logs-Url: https://github.com/corepunch/doom-ed/sessions/ab8307cf-dc0f-4172-ba7b-72e2e7db814a Co-authored-by: corepunch <83646194+corepunch@users.noreply.github.com>
|
@copilot Read through code and add more unit tests and integration tests |
Agent-Logs-Url: https://github.com/corepunch/doom-ed/sessions/8cc82710-3175-4ad3-8e7d-e452e588dd0c Co-authored-by: corepunch <83646194+corepunch@users.noreply.github.com>
Added two new test suites in ab073b3, bringing the total from 52 to 85 passing tests:
Both are wired into |
Advances the
uisubmodule to the latest orion-uimainand fixes the resulting API breakage. Adds five new test suites covering previously untested core modules.orion-ui API migration (
0dd5b62→b570da0)Draw functions moved from pointer to pass-by-value
rect_tparams:mapview/map.h&r/&win->framecall sites ineditor/windows/sprite.candthings.cwindow_title_bar_ydeclaration frommap.h(function deleted upstream)axPollEventwithget_messageinmapview/wi_stuff.cmake library(avoids compiling example apps with upstream bugs)New tests (85 total, all passing)
tests/collision_test.cdist_sq,closest_point_on_line,calc_slide,can_enter_sectortests/wad_test.cis_map_block_valid, lump lookup, struct binary layouttests/bsp_test.cR_PointOnSide, BSP traversal (existed but was never wired intomake test)tests/walls_test.ccompute_normal_packed: axis directions, diagonal, degenerate, 3-4-5, scale independencetests/player_test.cMakefile
testtarget andcleantarget updated accordingly. New test binaries added to.gitignore.