diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/buildcvs.py')
-rw-r--r-- | meta/lib/oeqa/runtime/buildcvs.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/buildcvs.py b/meta/lib/oeqa/runtime/buildcvs.py new file mode 100644 index 0000000000..f024dfa99a --- /dev/null +++ b/meta/lib/oeqa/runtime/buildcvs.py | |||
@@ -0,0 +1,32 @@ | |||
1 | from oeqa.oetest import oeRuntimeTest | ||
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 BuildCvsTest(oeRuntimeTest): | ||
10 | |||
11 | @classmethod | ||
12 | def setUpClass(self): | ||
13 | self.restartTarget("-m 512") | ||
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 | self.project.download_archive() | ||
17 | |||
18 | @skipUnlessPassed("test_ssh") | ||
19 | def test_cvs(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 | self.assertEqual(self.project.run_install(), 0, | ||
27 | msg="Running make install failed") | ||
28 | |||
29 | @classmethod | ||
30 | def tearDownClass(self): | ||
31 | self.project.clean() | ||
32 | self.restartTarget() | ||