Exemple #1
0
 def can_run():
     c_loader = os.getenv("SW_C_LOADER_PATH")
     if c_loader is None:
         ciel.log.error("Can't run C tasks: SW_C_LOADER_PATH not set",
                        "CEXEC", logging.WARNING)
         return False
     return test_program([c_loader, "--version"], "C-loader")
Exemple #2
0
 def can_run():
     jars_dir = os.getenv('CIEL_JARS_DIR')
     if jars_dir is None:
         ciel.log.error("Cannot run Java executor. The CIEL_JARS_DIR environment variable must be set.", "JAVA", logging.INFO)
         return False
     if not os.path.exists(os.path.join(jars_dir, 'ciel-0.1.jar')):
         ciel.log.error("Cannot run Java executor. The file 'ciel-0.1.jar' is not installed in CIEL_JARS_DIR.", "JAVA", logging.INFO)
         return False
     JavaExecutor.classpath = os.path.join(jars_dir, 'ciel-0.1.jar')
     return test_program(["java", "-cp", JavaExecutor.classpath, "uk.co.mrry.mercator.task.JarTaskLoader", "--version"], "Java")
Exemple #3
0
    def can_run():

        jars_dir = os.getenv('CIEL_JARS_DIR')
        if jars_dir is None:
            ciel.log.error("Cannot run Java2 executor. The CIEL_JARS_DIR environment variable must be set.", "JAVA", logging.INFO)
            return False
        for lib in REQUIRED_LIBS:
            if not os.path.exists(os.path.join(jars_dir, lib)):
                ciel.log.error("Cannot run Java2 executor. The file '%s' is not installed in CIEL_JARS_DIR." % lib, "JAVA", logging.INFO)
                return False

        Java2Executor.classpath = ":".join([os.path.join(jars_dir, x) for x in REQUIRED_LIBS])

        return test_program(["java", "-cp", Java2Executor.classpath, "com.asgow.ciel.executor.Java2Executor", "--version"], "Java")
Exemple #4
0
 def can_run():
     jars_dir = os.getenv('CIEL_JARS_DIR')
     if jars_dir is None:
         ciel.log.error(
             "Cannot run Java executor. The CIEL_JARS_DIR environment variable must be set.",
             "JAVA", logging.INFO)
         return False
     if not os.path.exists(os.path.join(jars_dir, 'ciel-0.1.jar')):
         ciel.log.error(
             "Cannot run Java executor. The file 'ciel-0.1.jar' is not installed in CIEL_JARS_DIR.",
             "JAVA", logging.INFO)
         return False
     JavaExecutor.classpath = os.path.join(jars_dir, 'ciel-0.1.jar')
     return test_program([
         "java", "-cp", JavaExecutor.classpath,
         "uk.co.mrry.mercator.task.JarTaskLoader", "--version"
     ], "Java")
Exemple #5
0
 def can_run():
     mono_loader = os.getenv('SW_MONO_LOADER_PATH')
     if mono_loader is None:
         ciel.log.error("Can't run Mono: SW_MONO_LOADER_PATH not set", "DOTNET", logging.WARNING)
         return False
     return test_program(["mono", mono_loader, "--version"], "Mono")
Exemple #6
0
 def can_run():
     return test_program(["java", "-version"], "Java")
Exemple #7
0
 def can_run():
     c_loader = os.getenv("SW_C_LOADER_PATH")
     if c_loader is None:
         ciel.log.error("Can't run C tasks: SW_C_LOADER_PATH not set", "CEXEC", logging.WARNING)
         return False
     return test_program([c_loader, "--version"], "C-loader")
Exemple #8
0
 def can_run():
     return test_program(["ocamlc", "-where"], "OCaml")
 def can_run():
     return test_program(["skywriting", "--version"], "Skywriting")
 def can_run():
     return test_program(["skywriting", "--version"], "Skywriting")
Exemple #11
0
 def can_run():
     return test_program(["ocamlc", "-where"], "OCaml")