def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfz', self.SRC_FILE) Wget(self.libmcrypt_uri, self.libmcrypt_file) tar('xfz', self.libmcrypt_file) Wget(self.mhash_uri, self.mhash_file) tar('xfz', self.mhash_file)
def download(self): book_file = "book.bin" book_bin = "http://www.craftychess.com/downloads/book/" + book_file Wget(self.src_uri, self.SRC_FILE) Wget(book_bin, book_file) mkdir(self.src_dir) with local.cwd(self.src_dir): unzip(path.join("..", self.SRC_FILE)) mv(book_file, self.src_dir)
def prepare(self): super(GZip, self).prepare() test_archive = self.test_archive test_url = self.test_url + test_archive Wget(test_url, test_archive) tar("fxz", test_archive)
def unpack_container(container, path): """ Unpack a container usable by uchroot. Method that checks if a directory for the container exists, checks if erlent support is needed and then unpacks the container accordingly. Args: path: The location where the container is, that needs to be unpacked. """ from benchbuild.utils.run import run, uchroot_no_args path = os.path.abspath(path) name = os.path.basename(os.path.abspath(container.filename)) if not os.path.exists(path): mkdir("-p", path) with local.cwd(path): Wget(container.remote, name) uchroot = uchroot_no_args() uchroot = uchroot["-E", "-A", "-C", "-r", "/", "-w", os.path.abspath("."), "--"] # Check, if we need erlent support for this archive. has_erlent = bash[ "-c", "tar --list -f './{0}' | grep --silent '.erlent'".format(name)] has_erlent = (has_erlent & TF) cmd = local["/bin/tar"]["xf"] if not has_erlent: cmd = uchroot[cmd["./" + name]] else: cmd = cmd[name] run(cmd["--exclude=dev/*"]) if not os.path.samefile(name, container.filename): rm(name) else: logging.warning("File contents do not match: {0} != {1}", name, container.filename) cp(container.filename + ".hash", path)
def download(self): Wget(self.src_uri, self.src_file) tar('xfz', path.join(self.builddir, self.src_file))
def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfz', path.join(self.builddir, self.SRC_FILE))
def download(self): """ Get the project source input. """ Wget(self.src_url, self.NAME)
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(self.SRC_FILE)
def download(self): Wget(self.boost_src_uri, self.boost_src_file) Git(self.src_uri, self.SRC_FILE) tar("xfj", self.boost_src_file)
def download(self): super(Crafty, self).download() book_file = "book.bin" book_bin = "http://www.craftychess.com/" + book_file Wget(book_bin, book_file)
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(self.SRC_FILE) type(self).fetch_leveldb()
def download(self): Wget(self.src_uri, self.SRC_FILE) tar("xf", os.path.join('.', self.SRC_FILE))
def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfj', self.SRC_FILE) cp(path.join(self.src_dir, "makefile.linux_clang_amd64_asm"), path.join(self.src_dir, "makefile.machine"))
def prepare(self): super(X264, self).prepare() for testfile in self.inputfiles: Wget(self.test_url + testfile, testfile)
def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfz', self.SRC_FILE)
def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfj', self.SRC_FILE) with local.cwd(self.src_dir): Rsync(self.fate_uri, self.fate_dir)
def download(self): Wget(self.src_uri, self.SRC_FILE) unzip(path.join('.', self.SRC_FILE))
def download(self): Wget(self.src_uri, self.SRC_FILE) tar("xfJ", self.SRC_FILE)
def download(self): Wget(self.src_uri, self.SRC_FILE) tar('xfz', path.join('.', self.SRC_FILE))
def download(self): lp_patch = template_path("../projects/patches/linpack.patch") Wget(self.src_uri, "linpackc.new") cp("-a", "linpackc.new", "linpack.c") (patch["-p0"] < lp_patch)()