diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-30 15:12:15 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | 260741847a2070a507a8a504bebd457eac99da5f (patch) | |
tree | 0243db29652083264ed55c175903bba02e54219f /meta/lib/oeqa/sdk | |
parent | 03d175f1fae52428da8ff43fd3de336dcd761362 (diff) | |
download | poky-260741847a2070a507a8a504bebd457eac99da5f.tar.gz |
oeqa/sdkext/cases: Migrate test case to new OEQA framework
Summary,
- Changes base case class to OESDKExtTest.
- Changes decorator classes to new ones.
- Chnages variable names sdktestdir -> sdk_dir.
- Added missing license to MIT.
(From OE-Core rev: 49568055df0a64e4228f27130b13ccafbba2a460)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/gcc.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py index bdc8b6ac87..42e8ddb185 100644 --- a/meta/lib/oeqa/sdk/cases/buildgalculator.py +++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py | |||
@@ -10,7 +10,7 @@ class GalculatorTest(OESDKTestCase): | |||
10 | def setUpClass(self): | 10 | def setUpClass(self): |
11 | if not (self.tc.hasTargetPackage("gtk+3") or\ | 11 | if not (self.tc.hasTargetPackage("gtk+3") or\ |
12 | self.tc.hasTargetPackage("libgtk-3.0")): | 12 | self.tc.hasTargetPackage("libgtk-3.0")): |
13 | raise unittest.SkipTest("%s class: SDK don't support gtk+3" % self.__name__) | 13 | raise unittest.SkipTest("GalculatorTest class: SDK don't support gtk+3") |
14 | 14 | ||
15 | def test_galculator(self): | 15 | def test_galculator(self): |
16 | dl_dir = self.td.get('DL_DIR', None) | 16 | dl_dir = self.td.get('DL_DIR', None) |
diff --git a/meta/lib/oeqa/sdk/cases/gcc.py b/meta/lib/oeqa/sdk/cases/gcc.py index e06af4c247..74ad2a2f2b 100644 --- a/meta/lib/oeqa/sdk/cases/gcc.py +++ b/meta/lib/oeqa/sdk/cases/gcc.py | |||
@@ -19,8 +19,7 @@ class GccCompileTest(OESDKTestCase): | |||
19 | def setUp(self): | 19 | def setUp(self): |
20 | machine = self.td.get("MACHINE") | 20 | machine = self.td.get("MACHINE") |
21 | if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): | 21 | if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): |
22 | raise unittest.SkipTest("%s class: SDK doesn't contain a cross-canadian toolchain", | 22 | raise unittest.SkipTest("GccCompileTest class: SDK doesn't contain a cross-canadian toolchain") |
23 | self.__name__) | ||
24 | 23 | ||
25 | def test_gcc_compile(self): | 24 | def test_gcc_compile(self): |
26 | self._run('$CC %s/test.c -o %s/test -lm' % (self.tc.sdk_dir, self.tc.sdk_dir)) | 25 | self._run('$CC %s/test.c -o %s/test -lm' % (self.tc.sdk_dir, self.tc.sdk_dir)) |