def METHOD_NAME(self):
    """build and run ctest against the installed software"""
    cmake_args = [
        self.define("CMAKE_PREFIX_PATH", self.prefix),
        self.define("CMAKE_CXX_COMPILER", self.compiler.cxx),
        self.define("CMAKE_Fortran_COMPILER", self.compiler.fc),
        self.cached_tests_work_dir,
    ]
    cmake = which(self.spec["cmake"].prefix.bin.cmake)
    ctest = which("ctest")
    make = which("make")
    with working_dir(self.cached_tests_work_dir, create=True):
        cmake(*cmake_args)
        make()
        out = ctest("-V", output=str.split, error=str.split)
        assert "100% tests passed" in out