scala/scala — pull request #1381 by paulp (2012-09-22 17:25:43+00:00)
Title: A wrapper for selecting tests for partest.

"partest-ack", just what it sounds like.

% tools/partest-ack
Usage: tools/partest-ack [ack options]

Given a regular expression (and optionally, any arguments accepted
by ack) runs all the tests for which any associated file matches
the regex. Associated files include .check and .flags files. Tests
in directories will match if any file matches. A file can match the
regex by its contents or by its name.

You must have ack installed:
http://betterthangrep.com/ack-standalone

Examples:

% tools/partest-ack monad
Found 4 tests matching 'ack monad'

Testing individual files
testing: [...]/files/pos/tcpoly_boundedmonad.scala [ OK ]
testing: [...]/files/pos/tcpoly_ticket2096.scala [ OK ]
testing: [...]/files/run/tcpoly_monads.scala [ OK ]
testing: [...]/files/presentation/callcc-interpreter [ OK ]

% tools/partest-ack monad -i # -i == ignore case
Found 12 tests matching 'ack monad -i'

Testing individual files
[etc]