Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run unit tests in CI, some type portability fixes #6

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

sozud
Copy link
Collaborator

@sozud sozud commented Dec 31, 2023

This runs the unit tests on PSX through a modified Mednafen, and on Linux.

I found that VabHdr and ProgAtr weren't working correctly on Linux since long is 8 bytes and the program casts char* directly to these structs. I added fixed-length portable types and some unit tests to check them.

The build system now does 2 full builds, one with -DUNIT_TESTS, which is not super efficient but good enough for now I think.

I moved the test code to it's own file.

@sozud sozud merged commit 4ff48d4 into AliveTeam:master Jan 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant