Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | from oeqa.oetest import oeRuntimeTest, skipModule |
| 2 | from oeqa.utils.decorators import * |
| 3 | from oeqa.utils.targetbuild import TargetBuildProject |
| 4 | |
| 5 | def setUpModule(): |
| 6 | if not oeRuntimeTest.hasFeature("tools-sdk"): |
| 7 | skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES") |
| 8 | |
| 9 | class SudokuTest(oeRuntimeTest): |
| 10 | |
| 11 | @classmethod |
| 12 | def setUpClass(self): |
| 13 | self.project = TargetBuildProject(oeRuntimeTest.tc.target, oeRuntimeTest.tc.d, |
| 14 | "http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2") |
| 15 | self.project.download_archive() |
| 16 | |
| 17 | @testcase(207) |
| 18 | @skipUnlessPassed("test_ssh") |
| 19 | def test_sudoku(self): |
| 20 | self.assertEqual(self.project.run_configure(), 0, |
| 21 | msg="Running configure failed") |
| 22 | |
| 23 | self.assertEqual(self.project.run_make(), 0, |
| 24 | msg="Running make failed") |
| 25 | |
| 26 | @classmethod |
| 27 | def tearDownClass(self): |
| 28 | self.project.clean() |