def __init__(self, libraryroot=None, verbose=False, compare_templates=None, fortpy_templates=None, rerun=None , compiler=None, debug=False, profile=False, quiet=False): self.parser = CodeParser() self.parser.verbose = verbose from fortpy.utility import set_fortpy_templates set_fortpy_templates(self, fortpy_templates) self.tgenerator = TestGenerator(self.parser, libraryroot, self.fortpy_templates, self, rerun) self.compiler = None """The full path to the compiler to use for the unit tests. """ self.quiet = quiet """Specifies whether the tester should run in quiet mode, which only prints essential information for the unit tests to stdout. """ self.debug = debug == True self.set_compiler(compiler) self.profile = self._profiler_exists(profile) #A flag to track whether the generator has already written #the executables. self._written = False #The user's raw value for the compare_templates directory self._compare_templates = compare_templates self._templatev = {} """Holds the version number of the fortpy.f90 file."""
def __init__(self, libraryroot=None, verbose=False, compare_templates=None, fortpy_templates=None, rerun=None , compiler=None, debug=False, profile=False, quiet=False, strict=False, nprocs=1): self.parser = CodeParser() self.parser.verbose = verbose from fortpy.utility import set_fortpy_templates set_fortpy_templates(self, fortpy_templates) self.tgenerator = TestGenerator(self.parser, libraryroot, self.fortpy_templates, self, rerun) self.compiler = None """The full path to the compiler to use for the unit tests. """ self.quiet = quiet """Specifies whether the tester should run in quiet mode, which only prints essential information for the unit tests to stdout. """ self.strict = strict """Specifies whether to compile files with *all* warnings enabled.""" self.debug = debug == True self.set_compiler(compiler) self.profile = self._profiler_exists(profile) self.nprocs = nprocs """The number of processors to use for multi-threading test case execution. """ #A flag to track whether the generator has already written #the executables. self._written = False #The user's raw value for the compare_templates directory self._compare_templates = compare_templates
def __init__(self, fortpy_templates=None, template_folder=None): self.fortpy_templates = None """The pull path to the directory that holds the templates shipping with fortpy. """ from fortpy.utility import set_fortpy_templates set_fortpy_templates(self, fortpy_templates) self.templates = {} """Dict of FileTemplate instances with the XML file name as key. """ from os import path self.folder = path.abspath(path.expanduser(template_folder)) """The path to the folder that houses the XML template to use in comparing. """ self.template = None """This is the main template used for all the versions of the files that
def __init__(self, libraryroot=None, verbose=False, compare_templates=None, fortpy_templates=None, rerun=None, compiler=None, debug=False, profile=False, quiet=False, strict=False, nprocs=1): self.parser = CodeParser() self.parser.verbose = verbose from fortpy.utility import set_fortpy_templates set_fortpy_templates(self, fortpy_templates) self.tgenerator = TestGenerator(self.parser, libraryroot, self.fortpy_templates, self, rerun) self.compiler = None """The full path to the compiler to use for the unit tests. """ self.quiet = quiet """Specifies whether the tester should run in quiet mode, which only prints essential information for the unit tests to stdout. """ self.strict = strict """Specifies whether to compile files with *all* warnings enabled.""" self.debug = debug == True self.set_compiler(compiler) self.profile = self._profiler_exists(profile) self.nprocs = nprocs """The number of processors to use for multi-threading test case execution. """ #A flag to track whether the generator has already written #the executables. self._written = False #The user's raw value for the compare_templates directory self._compare_templates = compare_templates