コード例 #1
0
ファイル: mcrypt.py プロジェクト: simbuerg/benchbuild
    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)
コード例 #2
0
    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)
コード例 #3
0
ファイル: gzip.py プロジェクト: vulder/benchbuild
    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)
コード例 #4
0
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)
コード例 #5
0
 def download(self):
     Wget(self.src_uri, self.src_file)
     tar('xfz', path.join(self.builddir, self.src_file))
コード例 #6
0
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     tar('xfz', path.join(self.builddir, self.SRC_FILE))
コード例 #7
0
ファイル: test_unionfs.py プロジェクト: vulder/benchbuild
 def download(self):
     """ Get the project source input. """
     Wget(self.src_url, self.NAME)
コード例 #8
0
ファイル: crocopat.py プロジェクト: vulder/benchbuild
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     unzip(self.SRC_FILE)
コード例 #9
0
ファイル: povray.py プロジェクト: simbuerg/benchbuild
 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)
コード例 #10
0
ファイル: crafty.py プロジェクト: vulder/benchbuild
    def download(self):
        super(Crafty, self).download()

        book_file = "book.bin"
        book_bin = "http://www.craftychess.com/" + book_file
        Wget(book_bin, book_file)
コード例 #11
0
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     unzip(self.SRC_FILE)
     type(self).fetch_leveldb()
コード例 #12
0
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     tar("xf", os.path.join('.', self.SRC_FILE))
コード例 #13
0
ファイル: sevenz.py プロジェクト: vulder/benchbuild
 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"))
コード例 #14
0
ファイル: x264.py プロジェクト: simbuerg/benchbuild
    def prepare(self):
        super(X264, self).prepare()

        for testfile in self.inputfiles:
            Wget(self.test_url + testfile, testfile)
コード例 #15
0
ファイル: xz.py プロジェクト: vulder/benchbuild
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     tar('xfz', self.SRC_FILE)
コード例 #16
0
 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)
コード例 #17
0
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     unzip(path.join('.', self.SRC_FILE))
コード例 #18
0
ファイル: gzip.py プロジェクト: simbuerg/benchbuild
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     tar("xfJ", self.SRC_FILE)
コード例 #19
0
ファイル: bzip2.py プロジェクト: vulder/benchbuild
 def download(self):
     Wget(self.src_uri, self.SRC_FILE)
     tar('xfz', path.join('.', self.SRC_FILE))
コード例 #20
0
ファイル: linpack.py プロジェクト: vulder/benchbuild
    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)()