Feature request: Make building and executing tests mandatory #20784
Labels
category:vcpkg-feature
The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
requires:discussion
Is your feature request related to a problem? Please describe.
For now, it's totally up to the port maintainer to control if the port is functional or not. Most probably maintainers don't test ports on every supported platform and in debug/release mode on every platform.
This is why it's totally possible to commit partially functional ports.
For example, HappySeaFox/sail#128
Proposed solution
Make building and executing tests in ports mandatory. This way we can make sure every port is functional on every platform and build mode. At least, this is a minimal quality control we can implement.
If a port doesn't have any tests or example applications to build, it may be recommended to add one explicitly by the port maintainer.
Also, it would be great to compile a small external test application against a port with
cmake -DCMAKE_TOOLCHAIN_FILE=...
. This is needed because of possibly broken cmake rules in some ports. See#21234
Describe alternatives you've considered
-
Additional context
-
The text was updated successfully, but these errors were encountered: