diff options
| author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2016-11-01 07:48:16 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:20 +0000 |
| commit | b569aa0e0056a97b29577f5bda611ef3dd539db3 (patch) | |
| tree | 64f4d7856959435abfc7c49258688f64861f6d7c /meta/lib/oeqa/runtime_cases/buildcvs.py | |
| parent | 3857e5c91da678d7bdc07712a1df9daa14354986 (diff) | |
| download | poky-b569aa0e0056a97b29577f5bda611ef3dd539db3.tar.gz | |
oeqa/runtime/cases: Migrate runtime tests.
This migrates current runtime test suite to be used with the new framework.
[YOCTO #10234]
(From OE-Core rev: b39c61f2d442c79d03b73e8ffd104996fcb2177e)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime_cases/buildcvs.py')
| -rw-r--r-- | meta/lib/oeqa/runtime_cases/buildcvs.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/lib/oeqa/runtime_cases/buildcvs.py b/meta/lib/oeqa/runtime_cases/buildcvs.py deleted file mode 100644 index a5ca3a5b37..0000000000 --- a/meta/lib/oeqa/runtime_cases/buildcvs.py +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | from oeqa.oetest import oeRuntimeTest, skipModule | ||
| 2 | from oeqa.utils.decorators import * | ||
| 3 | from oeqa.runtime.utils.targetbuildproject 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 BuildCvsTest(oeRuntimeTest): | ||
| 10 | |||
| 11 | @classmethod | ||
| 12 | def setUpClass(self): | ||
| 13 | dl_dir = oeRuntimeTest.tc.d.getVar('DL_DIR', True) | ||
| 14 | self.project = TargetBuildProject(oeRuntimeTest.tc.target, | ||
| 15 | "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2", | ||
| 16 | dl_dir=dl_dir) | ||
| 17 | |||
| 18 | @testcase(205) | ||
| 19 | @skipUnlessPassed("test_ssh") | ||
| 20 | def test_cvs(self): | ||
| 21 | self.assertEqual(self.project.run_configure(), 0, | ||
| 22 | msg="Running configure failed") | ||
| 23 | |||
| 24 | self.assertEqual(self.project.run_make(), 0, | ||
| 25 | msg="Running make failed") | ||
| 26 | |||
| 27 | self.assertEqual(self.project.run_install(), 0, | ||
| 28 | msg="Running make install failed") | ||
| 29 | |||
| 30 | @classmethod | ||
| 31 | def tearDownClass(self): | ||
| 32 | self.project.clean() | ||
