Make UTs run on SEGA Saturn - #133
Merged
Merged
Conversation
…ional requirements
…rtOrder, and Trigonometry - Implemented tests for Vector2D covering construction, absolute values, sorting, dot/cross products, length calculations, normalization, and shift operations. - Added tests for Vector3D including construction, absolute values, sorting, dot/cross products, length calculations, normalization, and shift operations. - Created tests for Sphere to validate properties, intersections, translations, and closest point calculations. - Developed tests for SortOrder to ensure distinct values and sorting functionality. - Introduced tests for Trigonometry to verify key angle calculations for sine, cosine, tangent, and atan2 functions.
…stic overflow test
- Updated test descriptions for clarity and consistency. - Added tests for angle conversions, including edge cases for wrapping. - Implemented tests for unary operations and SLerp functionality. - Ensured all tests cover various scenarios, including negative angles and large scalars.
…additional test cases
…lues, degenerate cases, and various geometric classifications
… Max, Clamp, and FastSqrt
… structured log levels
…nt tickstamp accessor test
- Added detailed Doxygen-style comments to all test functions and setup/teardown methods for clarity. - Refactored tests for fixed-point initialization, arithmetic operations, and comparisons to improve readability and maintainability. - Introduced new tests for methods like `TruncateFraction`, `GetFraction`, `Floor`, `Ceil`, and `Round`. - Consolidated modulo tests into a helper function for better organization and reduced redundancy. - Removed commented-out edge case tests to clean up the codebase.
…xecution permissions
willll
requested review from
ReyeMe and
robertoduarte
and removed request for
ReyeMe
July 13, 2026 15:10
…ng conventions for USB development cartridge
…erences for USB DevCart communication
…dress sharing in CS1 namespace
…eout parameters for FIFO readiness checks
…plify FIFO wait functions with timeout handling
…ity and consistency
- Updated test utility functions in testsUtils.hpp for better readability and consistency. - Enhanced logging in test output functions to differentiate between testing and error states. - Refactored test cases in testsVector2D.hpp and testsVector3D.hpp to improve clarity and maintainability. - Ensured consistent formatting and documentation style across all test cases. - Added missing test cases and improved assertions for better test coverage.
Owner
|
Tested on JP saturn with gamers cartrige. UTs compiled on windows, and ftx used on windows. All works when done manually. Zadig tools was also needed to force correct driver (Winusb) for the gamers cartrige |
ReyeMe
requested changes
Jul 18, 2026
ReyeMe
left a comment
Owner
There was a problem hiding this comment.
Move the new .vscode/tasks.json to Tests folder
make the task call compile.bat instead of make directly
…nit testing workflow
ReyeMe
requested review from
bimmerlabs,
jae686 and
nemesis-saturn
and removed request for
robertoduarte
July 21, 2026 20:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of the PR is to provide a way to run Unit tests on SEGA Saturn through the gamer's cartridge,
UTs run on Saturn without modification but they do not output results, this PR add a display of results per group tests and a summary of the execution results directly on the Screen.
If built with make SRL_LOG_OUTPUT=DEV_CART and a SRL_LOG_LEVEL high enough (such as TESTING), the logs are sent to the serial line :
> make SRL_LOG_OUTPUT=DEV_CART
https://github.com/willll/ftx is required to retrieve traces from the gamer's cartridge, a new getFTX script has been added (to be tested).