Skip to content

Wildcard Search

Gavin Fielder edited this page May 7, 2019 · 2 revisions

Wildcard search is enabled for the test runner as well as the enable-test and disable-test scripts.

  • ./test "x*prec" runs all x tests that have 'prec' in the name.
  • ./test "*af" runs any tests which has 'af' in its name.
  • ./enable-test "nocrash*null" enables all nocrash tests which have 'null' in the name.
  • ./disable-test "f*stress" disables the %f stress tests.

If '*' does not work

For almost all shell terminals, the * needs to be escaped--usually, putting a string in double quotes is sufficient. If it is not, you can also use any character that is not valid for a C function name:

  • ./test x@prec runs all x tests that have 'prec' in the name.
  • ./test "$af" runs any tests which has 'af' in its name.
  • ./enable-test nocrash@null enables all nocrash tests which have 'null' in the name.
  • ./disable-test "f&stress" disables the %f stress tests.