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

Add test executables for different configurations #727

Conversation

LukasWoodtli
Copy link
Contributor

The same tests are compiled and ran with different defines to make sure that combinations of different configurations work properly.

Some combinations of defines are added. This can be extended to include other interesting configuration combinations.

@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from 8745cf7 to 777d526 Compare October 12, 2023 12:12
@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch 8 times, most recently from 49a85f1 to 3a89ada Compare November 3, 2023 20:55
@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from 3a89ada to 597e111 Compare November 20, 2023 20:17
.cmake-format Outdated
"COMPILE_DEFINITIONS": '*',
}
}
}
Copy link
Contributor

@mlasch mlasch Nov 20, 2023

Choose a reason for hiding this comment

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

The newline has gone missing here.

@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from 597e111 to f306a29 Compare November 21, 2023 08:12
Copy link
Contributor

@mlasch mlasch left a comment

Choose a reason for hiding this comment

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

Nice addition to support automated testing and coverage.

@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from f306a29 to 9c2960e Compare November 21, 2023 11:11
The registration code is disabled at compile time if we do
not set the define for building a server.
@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from 9c2960e to 1c3ddbd Compare November 21, 2023 11:55
In some cases a random byte pattern was interpreted as a
boolean type. This happend when the conversion to a bool
was not successful but its value was logged anyway.
The same tests are compiled with different defines to make sure
that combinations of different configurations work properly.
@LukasWoodtli LukasWoodtli force-pushed the gardena/lw/tests_with_different_defines branch from 1c3ddbd to 189da07 Compare November 21, 2023 12:28
@mlasch mlasch merged commit 2df3806 into eclipse-wakaama:master Nov 21, 2023
31 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.

2 participants