diff options
author | brian avery <brian.avery@intel.com> | 2017-03-18 08:08:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:21 +0000 |
commit | c0970e0af92d0d5eefe0029767af4a4bb4257622 (patch) | |
tree | 4141502a05b25ca67a97f6a13c5cc92ba3fdbe70 /meta | |
parent | 3c8d045d79b9abe37c3ed0e2869195ec1eda9a57 (diff) | |
download | poky-c0970e0af92d0d5eefe0029767af4a4bb4257622.tar.gz |
meta/lib/oeqa: change sdk test from cvs to cpio
We currently fetch,configure,build, and install cvs as our test for the
sdk. cvs unfortunately, requires a default editor in order to run. The
change in 94790a8254d6 that checks to see if you have something like vi
installed is fragile since you may have a different default editor. This
patch switches from using cvs as a test to using cpio. cpio also uses
autotools so the functionality tested is equivalent.
(From OE-Core rev: 233d36b0382a8b2e430c3377e50885d1a0c3ba21)
Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/testimage.bbclass | 6 | ||||
-rw-r--r-- | meta/lib/oeqa/runtime/cases/buildcpio.py (renamed from meta/lib/oeqa/runtime/cases/buildcvs.py) | 8 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcpio.py (renamed from meta/lib/oeqa/sdk/cases/buildcvs.py) | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 173d97408c..bfe5714454 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -49,10 +49,10 @@ DEFAULT_TEST_SUITES_pn-core-image-x11 = "${MINTESTSUITE}" | |||
49 | DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} pam parselogs ${RPMTESTSUITE}" | 49 | DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} pam parselogs ${RPMTESTSUITE}" |
50 | DEFAULT_TEST_SUITES_pn-core-image-sato = "${NETTESTSUITE} connman xorg parselogs ${RPMTESTSUITE} \ | 50 | DEFAULT_TEST_SUITES_pn-core-image-sato = "${NETTESTSUITE} connman xorg parselogs ${RPMTESTSUITE} \ |
51 | ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}" | 51 | ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}" |
52 | DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "${NETTESTSUITE} buildcvs buildiptables buildgalculator \ | 52 | DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "${NETTESTSUITE} buildcpio buildiptables buildgalculator \ |
53 | connman ${DEVTESTSUITE} logrotate perl parselogs python ${RPMTESTSUITE} xorg" | 53 | connman ${DEVTESTSUITE} logrotate perl parselogs python ${RPMTESTSUITE} xorg" |
54 | DEFAULT_TEST_SUITES_pn-core-image-lsb-dev = "${NETTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}" | 54 | DEFAULT_TEST_SUITES_pn-core-image-lsb-dev = "${NETTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}" |
55 | DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "${NETTESTSUITE} buildcvs buildiptables buildgalculator \ | 55 | DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "${NETTESTSUITE} buildcpio buildiptables buildgalculator \ |
56 | connman ${DEVTESTSUITE} logrotate pam parselogs perl python ${RPMTESTSUITE}" | 56 | connman ${DEVTESTSUITE} logrotate pam parselogs perl python ${RPMTESTSUITE}" |
57 | DEFAULT_TEST_SUITES_pn-meta-toolchain = "auto" | 57 | DEFAULT_TEST_SUITES_pn-meta-toolchain = "auto" |
58 | 58 | ||
@@ -61,7 +61,7 @@ DEFAULT_TEST_SUITES_remove_aarch64 = "xorg" | |||
61 | 61 | ||
62 | # qemumips is quite slow and has reached the timeout limit several times on the YP build cluster, | 62 | # qemumips is quite slow and has reached the timeout limit several times on the YP build cluster, |
63 | # mitigate this by removing build tests for qemumips machines. | 63 | # mitigate this by removing build tests for qemumips machines. |
64 | MIPSREMOVE ??= "buildcvs buildiptables buildgalculator" | 64 | MIPSREMOVE ??= "buildcpio buildiptables buildgalculator" |
65 | DEFAULT_TEST_SUITES_remove_qemumips = "${MIPSREMOVE}" | 65 | DEFAULT_TEST_SUITES_remove_qemumips = "${MIPSREMOVE}" |
66 | DEFAULT_TEST_SUITES_remove_qemumips64 = "${MIPSREMOVE}" | 66 | DEFAULT_TEST_SUITES_remove_qemumips64 = "${MIPSREMOVE}" |
67 | 67 | ||
diff --git a/meta/lib/oeqa/runtime/cases/buildcvs.py b/meta/lib/oeqa/runtime/cases/buildcpio.py index c3f3acc736..59edc9c2c1 100644 --- a/meta/lib/oeqa/runtime/cases/buildcvs.py +++ b/meta/lib/oeqa/runtime/cases/buildcpio.py | |||
@@ -5,12 +5,12 @@ from oeqa.core.decorator.data import skipIfNotFeature | |||
5 | 5 | ||
6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | 6 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject |
7 | 7 | ||
8 | class BuildCvsTest(OERuntimeTestCase): | 8 | class BuildCpioTest(OERuntimeTestCase): |
9 | 9 | ||
10 | @classmethod | 10 | @classmethod |
11 | def setUpClass(cls): | 11 | def setUpClass(cls): |
12 | uri = 'http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13' | 12 | uri = 'https://ftp.gnu.org/gnu/cpio' |
13 | uri = '%s/cvs-1.12.13.tar.bz2' % uri | 13 | uri = '%s/cpio-2.12.tar.bz2' % uri |
14 | cls.project = TargetBuildProject(cls.tc.target, | 14 | cls.project = TargetBuildProject(cls.tc.target, |
15 | uri, | 15 | uri, |
16 | dl_dir = cls.tc.td['DL_DIR']) | 16 | dl_dir = cls.tc.td['DL_DIR']) |
@@ -24,7 +24,7 @@ class BuildCvsTest(OERuntimeTestCase): | |||
24 | @skipIfNotFeature('tools-sdk', | 24 | @skipIfNotFeature('tools-sdk', |
25 | 'Test requires tools-sdk to be in IMAGE_FEATURES') | 25 | 'Test requires tools-sdk to be in IMAGE_FEATURES') |
26 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 26 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
27 | def test_cvs(self): | 27 | def test_cpio(self): |
28 | self.project.run_configure() | 28 | self.project.run_configure() |
29 | self.project.run_make() | 29 | self.project.run_make() |
30 | self.project.run_install() | 30 | self.project.run_install() |
diff --git a/meta/lib/oeqa/sdk/cases/buildcvs.py b/meta/lib/oeqa/sdk/cases/buildcpio.py index 8cbbca12a1..11d629a1d3 100644 --- a/meta/lib/oeqa/sdk/cases/buildcvs.py +++ b/meta/lib/oeqa/sdk/cases/buildcpio.py | |||
@@ -2,15 +2,15 @@ import unittest | |||
2 | from oeqa.sdk.case import OESDKTestCase | 2 | from oeqa.sdk.case import OESDKTestCase |
3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject | 3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject |
4 | 4 | ||
5 | class BuildCvsTest(OESDKTestCase): | 5 | class BuildCpioTest(OESDKTestCase): |
6 | td_vars = ['DATETIME'] | 6 | td_vars = ['DATETIME'] |
7 | 7 | ||
8 | @classmethod | 8 | @classmethod |
9 | def setUpClass(self): | 9 | def setUpClass(self): |
10 | dl_dir = self.td.get('DL_DIR', None) | 10 | dl_dir = self.td.get('DL_DIR', None) |
11 | 11 | ||
12 | self.project = SDKBuildProject(self.tc.sdk_dir + "/cvs/", self.tc.sdk_env, | 12 | self.project = SDKBuildProject(self.tc.sdk_dir + "/cpio/", self.tc.sdk_env, |
13 | "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2", | 13 | "https://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.bz2", |
14 | self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) | 14 | self.tc.sdk_dir, self.td['DATETIME'], dl_dir=dl_dir) |
15 | self.project.download_archive() | 15 | self.project.download_archive() |
16 | 16 | ||
@@ -18,7 +18,7 @@ class BuildCvsTest(OESDKTestCase): | |||
18 | if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): | 18 | if not self.tc.hasHostPackage("packagegroup-cross-canadian-%s" % machine): |
19 | raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain") | 19 | raise unittest.SkipTest("SDK doesn't contain a cross-canadian toolchain") |
20 | 20 | ||
21 | def test_cvs(self): | 21 | def test_cpio(self): |
22 | self.assertEqual(self.project.run_configure(), 0, | 22 | self.assertEqual(self.project.run_configure(), 0, |
23 | msg="Running configure failed") | 23 | msg="Running configure failed") |
24 | 24 | ||