Document tests in test_cmake.
Use logging.error() instead of print >> sys.stderr in test_cmake to report errors.