Add option to ignore Lua destructor test with warning#16040
Add option to ignore Lua destructor test with warning#16040twrightsman wants to merge 1 commit intoluanti-org:masterfrom twrightsman:allow-ignoring-destructor-test
Conversation
Some uncommon architectures (e.g. armel) fail the destructor test but users may still want to use them without disabling all unit tests.
|
I get the idea, but if you as a packager are conditionally enabling this option it should be equally easy to just patch the test out as needed. |
In theory, yes 🙂 Though Debian tooling favors the single patch for all architectures. That being said, this patch really borders on being Debian-specific and I would completely understand if you decide this is something not appropriate to be included in Luanti upstream. A more general test skipping mechanism would probably be better. |
I agree. We use Catch2 for new tests which could provide this. The problem currently just is that many tests don't use Catch2 yet. I have a patch which converts the tests in question to use Catch2: https://github.com/appgurueu/minetest/tree/test/lua The problem is just that if we abuse |
Some uncommon architectures (e.g. armel) fail the destructor test but users may still want to use them without disabling all unit tests.
This is a potential workaround for #16031 in situations where we want to ensure the other unit tests still pass.
To do
This PR is Ready for Review.
How to test
Add
-DIGNORE_LUA_DESTRUCTOR_TEST_FAILURE=TRUEtocmakeoptions and test on one of the known failing architectures: armel, armhf, loong64, or mips64el.