diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-27 17:51:53 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | c9fe59d7c5e815fb6453f50d0f15699ea6799129 (patch) | |
tree | 4e7715c04b705eb78f49e55d421b25483c594f9c /meta/lib/oeqa/sdk/cases/buildcvs.py | |
parent | 51be1880631435627e8ff490d71b024c2683244a (diff) | |
download | poky-c9fe59d7c5e815fb6453f50d0f15699ea6799129.tar.gz |
oeqa/sdk/cases: Migrate tests to the new OEQA framework
Summary of the changes:
- Remove auto extend_path using pkgutil at __init__, is not needed.
- Change base class to OESDKTestCase.
- Add td_vars attr to set dependencies of certain variables in test
data.
- Change skips from module level to class level because Test context
(tc)
now isn't at module level.
- Variable names changes to be consistent (i.e. sdktestdir ->
sdk_dir).
[YOCTO #10599]
- Don't use bb.utils functions use instead remove_safe and shutil
for copy files.
- SDKBuildProject pass test data variables instead of call getVar
inside.
[YOCTO #10231]
(From OE-Core rev: 91cd1ed19a3f34c29cd77eb136036975fe465444)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
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/sdk/cases/buildcvs.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcvs.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildcvs.py b/meta/lib/oeqa/sdk/cases/buildcvs.py index c7146fa4af..ee7fb73803 100644 --- a/meta/lib/oeqa/sdk/cases/buildcvs.py +++ b/meta/lib/oeqa/sdk/cases/buildcvs.py | |||
@@ -1,13 +1,16 @@ | |||
1 | from oeqa.oetest import oeSDKTest, skipModule | 1 | from oeqa.sdk.case import OESDKTestCase |
2 | from oeqa.utils.decorators import * | 2 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject |
3 | from oeqa.utils.targetbuild import SDKBuildProject | ||
4 | 3 | ||
5 | class BuildCvsTest(oeSDKTest): | 4 | class BuildCvsTest(OESDKTestCase): |
5 | td_vars = ['TEST_LOG_DIR', 'DATETIME'] | ||
6 | 6 | ||
7 | @classmethod | 7 | @classmethod |
8 | def setUpClass(self): | 8 | def setUpClass(self): |
9 | self.project = SDKBuildProject(oeSDKTest.tc.sdktestdir + "/cvs/", oeSDKTest.tc.sdkenv, oeSDKTest.tc.d, | 9 | dl_dir = self.td.get('DL_DIR', None) |
10 | "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2") | 10 | |
11 | self.project = SDKBuildProject(self.tc.sdk_dir + "/cvs/", self.tc.sdk_env, | ||
12 | "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2", | ||
13 | self.td['TEST_LOG_DIR'], self.td['DATETIME'], dl_dir=dl_dir) | ||
11 | self.project.download_archive() | 14 | self.project.download_archive() |
12 | 15 | ||
13 | def test_cvs(self): | 16 | def test_cvs(self): |