Add better support for .cmm test files.

Fixes Trac #7573.

Signed-off-by: Austin Seipp <mad.one@gmail.com>