Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Add tests for image loaders #244

Merged
merged 4 commits into from
Nov 1, 2023
Merged

Add tests for image loaders #244

merged 4 commits into from
Nov 1, 2023

Conversation

numberZero
Copy link
Contributor

@numberZero numberZero commented Sep 30, 2023

This PR adds simple tests for BMP, PNG and TGA image loaders. Image dimensions and content are tested.

Image size is deliberately odd, to capture bugs related to unusual image sizes (apparently BMP loader has this exact problem with 16bpp images).

I commented out tests that fail currently to reduce noise. These should be enabled on fixing underlying problems.

I only added testing to the linux-gl build as the tests look platform-independent currently. Not sure whether that’s a good idea though.

@numberZero numberZero changed the title Add unit tests for image loaders Add tests for image loaders Oct 1, 2023
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after importing irrlicht into mt we should probably decide which testing framework these should use in the future.

@sfan5
Copy link
Member

sfan5 commented Oct 16, 2023

Can you recheck if any new tests work now?

@sfan5 sfan5 added the WIP Work-in-Progress label Oct 27, 2023
@numberZero
Copy link
Contributor Author

numberZero commented Oct 29, 2023

Updated.
“ImageLoaderTGA-24bpp_rle_up” fails due to 4a7d3de.

@numberZero
Copy link
Contributor Author

“ImageLoaderTGA-24bpp_rle_up” fails due to 4a7d3de.

Fixed with c47300b

@sfan5 sfan5 merged commit 85081d6 into minetest:master Nov 1, 2023
14 checks passed
@sfan5 sfan5 removed the WIP Work-in-Progress label Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants