Example #1
0
 def _has_unit_test_support(self):
     if self.TEST_COMPILER is None:
         default_compiler = self.MACHINE.get_default_compiler()
         compiler = Compilers(self.MACHINE, compiler=default_compiler)
     else:
         compiler = Compilers(self.MACHINE, compiler=self.TEST_COMPILER)
     attrs = {"MPILIB": "mpi-serial", "compile_threaded": "FALSE"}
     pfunit_path = compiler.get_optional_compiler_node("PFUNIT_PATH",
                                                       attributes=attrs)
     if pfunit_path is None:
         return False
     else:
         return True