The test suite uses the standard automake support. Tests are always built, but run only when you do a "make check".