On Tue, 3 Dec 2024, LIU Hao wrote:
在 2024-12-03 21:52, Martin Storsjö 写道:
I didn't look at the added test here (and not much on the test added in an
earlier patch series either); I'm not familiar with how to build/run those
tests. Can you briefly tell me how to use them? And is it possible to
execute the tests e.g. wrapped in wine on linux? (That obviously doesn't
always correctly indicate whether the tests work correctly on windows, but
it can be used as a quick extra check at least.)
For automake, the standard way to build & run tests is `make check`.
Right.. Is there any common standard way to just compile them but not run
them?
I have not tried test programs in Wine; automake doc suggests it's possible
to provide a 'test runner' for the extension `.exe`:
https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html
Hmm, ok, that doesn't seem very straightforward - it seems like it would
require adjustments in Makefile.am to add such a wrapper tool, while I'd
like to do e.g. "make check WRAP=wine" or something like that, or just
"make check-compile" to only test compiling but leave execution to later.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public