How to run a single test from testsuite?


I have built couchbase server from source and I am seeing a few test cases fail. For example,
69 - platform-dirutils-test (Failed)

I would like to run only this test case and debug it. I went through the documentation link of couchbase but didn’t find the solution. How should I run only the failing test 69-platform-dirutils-test?


The tests are run via ctest. To run a single test (or any tests matching a given pattern), use -R:

ctest -R platform-dirutils-tests`

You may also want to add -V to print the output of the test.

Thanks @drigby - that was very helpful (especially the -V flag)…