Zulip Chat Archive

Stream: lean4 dev

Topic: make test for specific tests


Alexander Bentkamp (Sep 21 2023 at 04:24):

How do I run a specific test instead of running all tests with make test?

Sebastian Ullrich (Sep 21 2023 at 07:05):

See ctest -R. Not sure I ever tried, but make test ARGS="-R foo" should be equivalent

Alexander Bentkamp (Sep 21 2023 at 07:27):

lean4/build/release$ ctest -R leancomptest_534.lean
Test project /home/alex/Projects/test/lean4/build/release
No tests were found!!!

Maybe I have to call this from a different directory?

But make test ARGS="-R foo" works great!

Henrik Böving (Sep 21 2023 at 07:33):

I usually enter the stageN directory and run ctest there @Alexander Bentkamp

Sebastian Ullrich (Sep 21 2023 at 07:36):

See also https://lean-lang.org/lean4/doc/dev/testing.html. Which doesn't mention -R yet.

Alexander Bentkamp (Sep 21 2023 at 08:32):

Ah, that works, thanks!


Last updated: Dec 20 2023 at 11:08 UTC