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/cases/gcc.py | |
| 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/cases/gcc.py')
| -rw-r--r-- | meta/lib/oeqa/sdk/cases/gcc.py | 3 |
1 files changed, 1 insertions, 2 deletions
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)) |
