libhydrogen icon indicating copy to clipboard operation
libhydrogen copied to clipboard

add option to disable tests

Open autoantwort opened this issue 2 years ago • 4 comments

Currently vcpkg needs a patch to remove them: https://github.com/microsoft/vcpkg/blob/master/ports/libhydrogen/remove-tests.patch

autoantwort avatar Jun 20 '22 23:06 autoantwort

Wait... why do they NOT run the tests? That sounds like a bad idea.

jedisct1 avatar Jun 21 '22 06:06 jedisct1

Why should they? Does this library contains bugs that must be detected when building the library?

autoantwort avatar Jun 21 '22 10:06 autoantwort

Different compilers, different compiler versions, different platforms may produce different behaviors. This is a cryptography library, and a misbehavior can have implications. Using it without having run the test suite is a bad idea.

jedisct1 avatar Jun 21 '22 12:06 jedisct1

Why should they? Does this library contains bugs that must be detected when building the library?

Why shouldn't vcpkg build and run tests does its toolchain contain bugdoors revealed by the regression tests? It's easy to frame an accusation as a question, but it doesn't advance honest subject matter discussions. A short test build and executed as part of release builds is useful to defend against regressions only revealed when building with a release. It doesn't matter if the "blame" for the regression lies with the packaged code or the toolchain building it.

Given how lightweight libhydrogen is compared to normal desktop (and server) bloatware expected to always run on Windows systems shipping the test executable should be hidden my the rounding errors, but excluding it from the package (after the test passed) could be worth it to avoid maintaining one more packaged executable.

Crest avatar Jun 21 '22 13:06 Crest