diff options
author | Jose Perez Carranza <jose.perez.carranza@linux.intel.com> | 2017-07-03 13:04:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-08 13:34:46 +0100 |
commit | aac343acc01ea275e05acd8ccf0e6f73581d535a (patch) | |
tree | 9a3e8048e4f38f9be00a3acf33215a03add21893 /meta/lib/oeqa/sdk/cases/buildlzip.py | |
parent | 3df1c95ba7754496f219027553dec3f30be5202d (diff) | |
download | poky-aac343acc01ea275e05acd8ccf0e6f73581d535a.tar.gz |
oeqa/sdk: Replace buildiptables for buildlzip tests
Buildiptables test cases are conflicting with images built with “musl”
as standard C library, in order to avoid those issues lzip package was
selected to be used on the tests as this does not have any "musl"
dependency.
[YOCTO #11713]
(From OE-Core rev: b798284f62b3cb171373716b1ee84403439314aa)
Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildlzip.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildlzip.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildlzip.py b/meta/lib/oeqa/sdk/cases/buildlzip.py new file mode 100644 index 0000000000..3a89ce8627 --- /dev/null +++ b/meta/lib/oeqa/sdk/cases/buildlzip.py | |||
@@ -0,0 +1,36 @@ | |||
1 | import unittest | ||
2 | from oeqa.sdk.case import OESDKTestCase | ||
3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject | ||
4 | |||
5 | |||
6 | class BuildLzipTest(OESDKTestCase): | ||
7 | td_vars = ['DATETIME'] | ||
8 | |||
9 | @classmethod | ||
10 | def setUpClass(self): | ||
11 | dl_dir = self.td.get('DL_DIR', None) | ||
12 | |||
13 | self.project = SDKBuildProject(self.tc.sdk_dir + "/lzip/", self.tc.sdk_env, | ||
14 | "http://downloads.yoctoproject.org/mirror/sources/lzip-1.19.tar.gz", | ||
15 | self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) | ||
16 | self.project.download_archive() | ||
17 | |||
18 | machine = self.td.get("MACHINE") | ||
19 | |||
20 | if not (self.tc.hasTargetPackage("packagegroup-cross-canadian-%s" % machine) or | ||
21 | self.tc.hasTargetPackage("gcc")): | ||
22 | raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain") | ||
23 | |||
24 | def test_lzip(self): | ||
25 | self.assertEqual(self.project.run_configure(), 0, | ||
26 | msg="Running configure failed") | ||
27 | |||
28 | self.assertEqual(self.project.run_make(), 0, | ||
29 | msg="Running make failed") | ||
30 | |||
31 | self.assertEqual(self.project.run_install(), 0, | ||
32 | msg="Running make install failed") | ||
33 | |||
34 | @classmethod | ||
35 | def tearDownClass(self): | ||
36 | self.project.clean() | ||