Пример #1
0
class BuildCvsTest(oeRuntimeTest):
    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(
            oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
            "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2"
        )
        self.project.download_archive()

    @testcase(205)
    @skipUnlessPassed("test_ssh")
    def test_cvs(self):
        self.assertEqual(self.project.run_configure(),
                         0,
                         msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0, msg="Running make failed")

        self.assertEqual(self.project.run_install(),
                         0,
                         msg="Running make install failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
Пример #2
0
class BuildIptablesTest(oeRuntimeTest):
    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(
            oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
            "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2"
        )
        self.project.download_archive()

    @testcase(206)
    @skipUnlessPassed("test_ssh")
    def test_iptables(self):
        self.assertEqual(self.project.run_configure(),
                         0,
                         msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0, msg="Running make failed")

        self.assertEqual(self.project.run_install(),
                         0,
                         msg="Running make install failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
Пример #3
0
class BuildIptablesTest(oeRuntimeTest):
    @classmethod
    def setUpClass(self):
        self.restartTarget("-m 512")
        self.project = TargetBuildProject(
            oeRuntimeTest.tc.target,
            "http://netfilter.org/projects/iptables/files/iptables-1.4.13.tar.bz2"
        )
        self.project.download_archive()

    @skipUnlessPassed("test_ssh")
    def test_iptables(self):
        self.assertEqual(self.project.run_configure(),
                         0,
                         msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0, msg="Running make failed")

        self.assertEqual(self.project.run_install(),
                         0,
                         msg="Running make install failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
        self.restartTarget()
Пример #4
0
    def test_galculator(self):
        try:
            project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
                                      "http://galculator.mnim.org/downloads/galculator-2.1.4.tar.bz2")
            project.download_archive()

            self.assertEqual(project.run_configure(), 0,
                            msg="Running configure failed")

            self.assertEqual(project.run_make(), 0,
                            msg="Running make failed")
        finally:
            project.clean()
Пример #5
0
class SudokuTest(oeRuntimeTest):
    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(
            oeRuntimeTest.tc.target,
            oeRuntimeTest.tc.d,
            "http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2",
        )
        self.project.download_archive()

    @skipUnlessPassed("test_ssh")
    def test_sudoku(self):
        self.assertEqual(self.project.run_configure(), 0, msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0, msg="Running make failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
Пример #6
0
class SudokuTest(oeRuntimeTest):
    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(
            oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
            "http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2"
        )
        self.project.download_archive()

    @skipUnlessPassed("test_ssh")
    def test_sudoku(self):
        self.assertEqual(self.project.run_configure(),
                         0,
                         msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0, msg="Running make failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
Пример #7
0
class BuildCvsTest(oeRuntimeTest):

    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(oeRuntimeTest.tc.target,
                        "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2")
        self.project.download_archive()

    @skipUnlessPassed("test_ssh")
    def test_cvs(self):
        self.assertEqual(self.project.run_configure(), 0,
                        msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0,
                        msg="Running make failed")

        self.assertEqual(self.project.run_install(), 0,
                        msg="Running make install failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()
Пример #8
0
class BuildIptablesTest(oeRuntimeTest):

    @classmethod
    def setUpClass(self):
        self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d,
                        "http://netfilter.org/projects/iptables/files/iptables-1.4.13.tar.bz2")
        self.project.download_archive()

    @skipUnlessPassed("test_ssh")
    def test_iptables(self):
        self.assertEqual(self.project.run_configure(), 0,
                        msg="Running configure failed")

        self.assertEqual(self.project.run_make(), 0,
                        msg="Running make failed")

        self.assertEqual(self.project.run_install(), 0,
                        msg="Running make install failed")

    @classmethod
    def tearDownClass(self):
        self.project.clean()