Option for case-insensitive CTest regex matching
cmake_minimum_required(VERSION 3.19) project(test) enable_testing() add_test(testnothing0 true) add_test(testNothing1 true)
…when I run
ctest -R nothing it selects
testnothing0, and when I run
ctest -R '[Nn]othing' it selects both tests, as expected.
I think it would be helpful to have an option to match tests regardless of case, to be able to quickly run all tests related to a certain keyword (without needing to worry about adding a regex character group for every case variation) — perhaps a
--ignore-case flag (to match
grep and other CLIs), so that
ctest -i -R nothing would select both tests.