コード例 #1
0
ファイル: test_fames.py プロジェクト: SciLifeLab/facs
    def test_1_download_low_complexity(self):
        dst = os.path.join(self.synthetic, self.lowc)

        subprocess.check_call(["wget", "{url}".format(url=self.fames_urlbase+self.lowc),
                               "-O", dst])

        with helpers.cd(self.synthetic):
            subprocess.check_call(['tar', 'xfz', self.lowc])
            os.remove(self.lowc)
コード例 #2
0
ファイル: test_simngs.py プロジェクト: SciLifeLab/facs
    def test_1_fetch_simNGS(self):
        """ Downloads and installs simNGS locally
        """
        dirname, fname = helpers._fetch_and_unpack(self.simngs_url)

        simngs = os.path.join(dirname, "bin", "simNGS")
        simlib = os.path.join(dirname, "bin", "simLibrary")
        runfile = os.path.join(dirname, "data", "s_3_4x.runfile")

        with helpers.cd(dirname):
            os.chdir("src")
            subprocess.check_call(["make"])

        helpers._move_p(simngs, self.progs)
        helpers._move_p(simlib, self.progs)
        helpers._move_p(runfile, self.progs)