Skip to content

Separate CMakeLists for each test target#3573

Merged
eXpl0it3r merged 6 commits into
SFML:masterfrom
JonnyPtn:test_structure
Oct 10, 2025
Merged

Separate CMakeLists for each test target#3573
eXpl0it3r merged 6 commits into
SFML:masterfrom
JonnyPtn:test_structure

Conversation

@JonnyPtn

Copy link
Copy Markdown
Contributor

A minor restructure of the cmake structure - Tests already have their own folder for source and resource files, and it's generally good practice (as we do throughout the rest of the project) to also have separate CMakeLists for each subdirectory/target

Generally makes It easier to understand and work with the tests

@JonnyPtn JonnyPtn changed the title Separate CMakeListst for each test target Separate CMakeLists for each test target Sep 13, 2025
@github-project-automation github-project-automation Bot moved this to Planned in SFML 3.1.0 Sep 15, 2025
@eXpl0it3r eXpl0it3r added this to the 3.1 milestone Sep 15, 2025
@eXpl0it3r eXpl0it3r moved this from Planned to In Review in SFML 3.1.0 Sep 15, 2025
@eXpl0it3r

Copy link
Copy Markdown
Member

The Android build is not happy about this change: https://ci.sfml-dev.org/#/builders/1/builds/2777/steps/11/logs/stdio

@JonnyPtn

Copy link
Copy Markdown
Contributor Author

Will take a look later but suspect I just need to update the paths it deploys assets to on the device

@JonnyPtn

Copy link
Copy Markdown
Contributor Author

So really should be using a proper android app for the tests, or failing that use cmake test fixtures to copy test data rather than a build target, but to keep the scope down for this change I've just updated the existing paths so android tests should pass now

@JonnyPtn

Copy link
Copy Markdown
Contributor Author

Seems our android setup is broken on windows currently which is all I have access to today - Have made an educated guess at the fix

@eXpl0it3r eXpl0it3r merged commit a682d81 into SFML:master Oct 10, 2025
104 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in SFML 3.1.0 Oct 10, 2025
@eXpl0it3r

Copy link
Copy Markdown
Member

Thank you! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants