Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | from oeqa.oetest import oeSDKTest, skipModule |
| 2 | from oeqa.utils.decorators import * |
| 3 | from oeqa.utils.targetbuild import SDKBuildProject |
| 4 | |
| 5 | def setUpModule(): |
| 6 | if not oeSDKTest.hasPackage("gtk\+"): |
| 7 | skipModule("Image doesn't have gtk+ in manifest") |
| 8 | |
| 9 | class SudokuTest(oeSDKTest): |
| 10 | |
| 11 | @classmethod |
| 12 | def setUpClass(self): |
| 13 | self.project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/sudoku/", oeSDKTest.tc.sdkenv, oeSDKTest.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 | def test_sudoku(self): |
| 18 | self.assertEqual(self.project.run_configure(), 0, |
| 19 | msg="Running configure failed") |
| 20 | |
| 21 | self.assertEqual(self.project.run_make(), 0, |
| 22 | msg="Running make failed") |
| 23 | |
| 24 | @classmethod |
| 25 | def tearDownClass(self): |
| 26 | self.project.clean() |