Example #1
0
    def run_release(self, name):
        instance = EngineInstance(name, "../bin", os.path.join(ROOT_DIR, 'externals', 'build'))
        self.instances[name] = instance

        instance.run_release(self.build_dir)

        return instance
Example #2
0
    def run_develop(self, name, compile_=False, continue_=False, wait=False, daemon=False, wid=None,
                    core_dir=None, port=None, bootscript=None, bootpkg=None):

        instance = EngineInstance(name, "../bin", os.path.join(ROOT_DIR, 'externals', 'build'))
        self.instances[name] = instance

        instance.run_develop(self.build_dir, self.source_dir, compile_=compile_, continue_=continue_, wait=wait,
                             daemon=daemon, wid=wid,
                             core_dir=core_dir, port=port, bootscript=bootscript, bootpkg=bootpkg)

        return instance
Example #3
0
def _build_dir(tmpdir_factory):
    instance = EngineInstance("compile test", os.path.join(ROOT_DIR, "bin"), os.path.join(ROOT_DIR, "externals/build"))

    global instance_counter

    build_dir = os.path.join(ROOT_DIR, "engine", "test", "data", "build"),

    port = 4444 + (instance_counter * 2)
    instance_counter += 1

    instance.run_develop(
        build_dir,
        os.path.join(ROOT_DIR, "engine", "test", "data", "src"),
        core_dir=os.path.join(ROOT_DIR, "core"),
        compile_=True,
        check=True,
        port=port,
        lock=False
    )

    return build_dir
Example #4
0
def _build_dir(tmpdir_factory):
    instance = EngineInstance("compile test", os.path.join(ROOT_DIR, "bin"),
                              os.path.join(ROOT_DIR, "externals/build"))

    global instance_counter

    build_dir = os.path.join(ROOT_DIR, "engine", "test", "data", "build"),

    port = 4444 + (instance_counter * 2)
    instance_counter += 1

    instance.run_develop(build_dir,
                         os.path.join(ROOT_DIR, "engine", "test", "data",
                                      "src"),
                         core_dir=os.path.join(ROOT_DIR, "core"),
                         compile_=True,
                         check=True,
                         port=port,
                         lock=False)

    return build_dir
Example #5
0
def engine_instance(request, _build_dir):
    instance = EngineInstance("test", os.path.join(ROOT_DIR, "bin"),
                              os.path.join(ROOT_DIR, "externals/build"))
    global instance_counter

    port = 4444 + (instance_counter * 2)
    instance_counter += 1

    instance.run_develop(
        os.path.join(ROOT_DIR, "engine", "test", "data", "build"),
        os.path.join(ROOT_DIR, "engine", "test", "data", "src"),
        core_dir=os.path.join(ROOT_DIR, "core"),
        port=port,
        protocol="tcp",
    )

    while not instance.ready:
        pass

    api = instance.console_api

    yield api

    api.quit()
    instance.kill()
Example #6
0
def engine_instance(request, _build_dir):
    instance = EngineInstance("test", os.path.join(ROOT_DIR, "bin"), os.path.join(ROOT_DIR, "externals/build"))
    global instance_counter

    port = 4444 + (instance_counter * 2)
    instance_counter += 1

    instance.run_develop(
        os.path.join(ROOT_DIR, "engine", "test", "data", "build"),
        os.path.join(ROOT_DIR, "engine", "test", "data", "src"),
        core_dir=os.path.join(ROOT_DIR, "core"),
        port=port, protocol="tcp",
    )

    while not instance.ready:
        pass

    api = instance.console_api

    yield api

    api.quit()
    instance.kill()