summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-07-31scripts/test-result-log: refactor and rename for easy read and maintaineyeoh7/result-test-logYeoh Ee Peng
Refactor and rename code to improve readability and maintain. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-30scripts/test-result-log: enhance report to track test completionYeoh Ee Peng
Restructure report format to focus on test completeion (passed, failed, skipped) and compare to test idle. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-26scripts/test-result-log: enable report to show idle statisticYeoh Ee Peng
Add logic to calculate idle testcase statistic. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-25scrips/test-result-log: fix bugs when negative testcase idYeoh Ee Peng
Fix the bugs when negative testcase id caused the testcase result being skipped. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-13scripts/test-result-log: enable remove testcase with remove pattern defineYeoh Ee Peng
Add support to allow user to define testcase removal pattern to be used during create and update testcase. Also allow user to force create when existing testcase files already exist. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-11scripts/test-result-log: allow input to select poky directory usedYeoh Ee Peng
Allow user to specify the poky directory used to test case discovery and clean codes. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-05scripts/test-result-log: refactor and add manual test files storeYeoh Ee Peng
Refactor codes to allow enhancement that add support for store manual test files. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-07-04scripts/test-result-log: refactor and minor formatYeoh Ee Peng
Refactor to remove unused codes, organize codes for easy understand and read. Replace "test_log" with "bugs" in test result file. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-29scripts/test-result-log: enhance report formatYeoh Ee Peng
Remove white space in the report. Align the report column dynamically based on input data. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-28scripts/test-result-log: compute test result by percent and show failed testsYeoh Ee Peng
Compute percent passed, failed, skipped indicator. Also show list of failed testcases. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-27test-result-log: add logic to create test reportYeoh Ee Peng
Add logic to create test report based on provided git repository. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-13scripts/test-result-log: add logic handle git_remote empty argumentYeoh Ee Peng
Add logic to skip git push to remote if git_remote argument was empty. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-13scripts/test-result-log: enhance logic to handle git fetch and rebaseYeoh Ee Peng
Add logic to fetch remote in order to perform check if remote branch exist, then fetch remote branch and rebase if remote branch exist. Also add logic to check if local repository contain specific branch, before proceed to create branch at local repository and commit update locally. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-12scripts/test-result-log: Enable store of test result and logYeoh Ee Peng
To provide an alternative to Testopia for storing test result and log from test execution. This script use oeqa test case to create test result template and then extract test result from existing oeqa test log to update the test result template. Also added feature to store test log when encounter failed/error test result. It will push test result and log to remote git repository if provided remote url. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
2018-06-07local.conf.sample: update libsdl mentions to libsdl2Ross Burton
Qemu now builds with libsdl2, so update the local.conf.sample to reflect this. (From meta-yocto rev: 5e187b5b3dc69f0e8e5a2956e7fe997e62cb48c9) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07bitbake: fetch/gitsm: avoid live submodule fetching during unpack()Matt Hoosier
Although the submodules' histories have been fetched during the do_fetch() phase, the mechanics used to clone the workdir copy of the repo haven't been transferring the actual .git/modules directory from the repo fetched into downloads/ during the fetch task. Fix that, and for good measure also explicitly tell Git to avoid hitting the network during do_unpack() of the submodules. [YOCTO #12739] (Bitbake rev: 11b6a5d5c1b1bb0ce0c5bb3983610d13a3e8f84a) Signed-off-by: Matt Hoosier <matt.hoosier@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07rpm: Fix patch to ensure variables aren't used uninitialisedRichard Purdie
Recent patches were applied which removed a function which set the xx variable. This means xx can be uninitalised and prerm functions can fail. This adjusts the patch to ensure the xx value isn't used in such a way. (From OE-Core rev: 23f15c63777020f5d43b070a1eb2bcf246c19ff8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07oeqa/runtime/dnf: Fix test error when static libs are enabledRichard Purdie
The test works by excluding curl-dev which curl-staticdev depends upon. When static libraries aren't disabled, this leads to an odd looking test failure. Simply exclude curl-staticdev as well in case its enabled to make sure the test always works. (From OE-Core rev: 0a77f4b680332a692abf0231e397fab44c59bde3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07shared-mime-info: fix license statementRoss Burton
The freedesktop.org.xml data and the update-mime-database tool are both GPLv2 as per COPYING, so change LICENSE to GPLv2. test-mime-magic.c is LGPLv2+ but we don't install that so isn't relevant. (From OE-Core rev: 4ca838097c43755e19f8ffc66436f9ad773fcd39) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07ltp: bump to release 20180515Daniel Díaz
The following patches have made it to upstream: * 0001-configure-Fix-default-value-of-without-numa-switch-i.patch * 0001-configure-add-knob-to-control-numa-support.patch * 0003-Add-knob-to-control-tirpc-support.patch * 0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch * 0040-safe_macros-make-is_fuse-return-zero-if-fs_type-is-N.patch These patches have been refreshed in order to apply cleanly and without any fuzz: * 0004-build-Add-option-to-select-libc-implementation.patch * 0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch * 0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch * 0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch * 0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch This next patch was added to the set of patches that make LTP build with musl: * 0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch (From OE-Core rev: 331b08516b9b15b9d50d6cade3c9a676bdcefef2) Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07meson: enable nativesdkMartin Kelly
Currently, we can't build meson into SDKs because we don't autogenerate the required meson.cross file. Enable this by using the post-relocate hooks and generating a meson.cross file based on the SDK environment passed into the post-relocate hook. (From OE-Core rev: aabb846b165fec218024a7a57f3c9fdaa2514179) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07meson: handle exe wrappersMartin Kelly
Add patches to enable meson to handle being wrapped with a shell script. This will enable us to do so for supporting the SDK, which requires us to setup env vars and point to a meson.cross file inside the SDK. These patches are all merged upstream, so we can drop them soon. (From OE-Core rev: f80567874c8c30e43d39599dd73dd4a67eff8103) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07toolchain-scripts: pass env to post-relocateMartin Kelly
It's useful for the post-relocate scripts to be able to see the SDK environment, for example to see the values of CC, CXX etc. in order to dynamically generate toolchain files. To enable this, source the SDK environment script prior to calling the relocate scripts. (From OE-Core rev: adcf69ee3310171580c28e141fec6997b1f06da4) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07toolchain-scripts: print post-relocate errorMartin Kelly
Currently, if a post-relocate script fails, it fails silently. We should be louder about this, as it likely indicates a broken SDK. Print a message if a post-relocate script fails. (From OE-Core rev: 369b5f3f98f8455c79731621cc669ad1948e2022) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07toolchain-scripts: allow non-sh post-relocateMartin Kelly
Currently, we look only for scripts matching *.sh, which means we can't write post-relocate scripts in other languages. Expand this to allow any type of script. (From OE-Core rev: 5569a6ec6d3c4358719350cac88afa69a76097a8) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07toolchain-scripts: retab fileMartin Kelly
A function is uses a mix of spaces and tabs. The rest of the file uses tabs, so switch to tabs uniformly. (From OE-Core rev: 693daaac7399a5a7665cd3bcbc915ff93db36db5) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07dropbear: drop obsolete patch 0004-fix-2kb-keys.patchAndre McCurdy
The origins of the patch date back to early 2005 (prior to the start of git history in oe-core) to fix a hardcoded limit on the maximum size of remote host keys: http://familiar.handhelds.narkive.com/b1VGg2bI/problem-w-dropbear-ssh The hardcoded limit was fixed upstream in dropbear 0.47: https://github.com/mkj/dropbear/commit/736f370dce614b717193f45d084e9e009de723ce The patch has therefore been obsolete since then. It went unnoticed until now as the patch has continued to apply - it modifies a value which is not used. (From OE-Core rev: 17072ffc1e765edd45bc1174378fb666185e5643) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07openssh: drop sshd support for DSA host keysAndre McCurdy
DSA keys have been deprecated for some time: https://www.gentoo.org/support/news-items/2015-08-13-openssh-weak-keys.html (From OE-Core rev: e6a1c8c4ef4a1d2add6a7492d43027c4c0682300) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07cmake: fix build issue with boost 1.67.0Armin Kuster
this fixes a build issue with boost 1.67.0 [Yocto 12762] (From OE-Core rev: 04f367e27e66105466611bee4d63abc78e0a4725) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07cmake: fix build issue with boost 1.66.0Armin Kuster
this fixes a build issue with boost 1.66.0 [Yocto 12762] (From OE-Core rev: 2ff3d3296deacb9af4d9ad0b92cd7ba5f94b7182) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07maintainers.inc: replace Alex Kanavin's @intel email address with a personal oneAlexander Kanavin
As I will be leaving Intel, this address will no longer be valid, so swap it for my personal one for now. (From OE-Core rev: 1d4f8b0b3f30f27b19fc91638d8d00e9545c1270) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07meta: replace Alex Kanavin's @intel email address with a personal oneAlexander Kanavin
As I will be leaving Intel, this address will no longer be valid, so swap it for my personal one for now. (From OE-Core rev: 08c9db07560b85dc24f27e2aa1542b17101751e5) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07oeqa: replace Alex Kanavin's @intel email address with a personal oneAlexander Kanavin
As I will be leaving Intel, this address will no longer be valid, so swap it for my personal one for now. (From OE-Core rev: ea58ff101e28dfda3410de66d775df3d8a1e5a96) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07packagegroup-self-hosted: remove libsdlRoss Burton
By default we now build our own libSDL, so don't ship libsdl in the self-hosted group. (From OE-Core rev: 992c7023ad42e493f80d2ff4a035944f81140896) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07qemu: use sdl2 instead of sdl1Martin Jansa
* sdl1 since qemu-2.12.0 depends on x11 in DISTRO_FEATURES, switch to sdl2 (From OE-Core rev: b90aaf0ca1bd82cca2f13164407881c53f15739c) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07qemu: add PACKAGECONFIG for virglrenderer, usb-redir and spiceMartin Jansa
* drop "fdt sdl" listed twice in PACKAGECONFIG * keep all 3 disabled by default * spice, usbredir recipes will eventually be in meta-networking layer (you can use jansa/spice branch from meta-openembedded-contrib repository) * virglrenderer recipe will eventually be in oe-core layer (you can use jansa/qemu branch from openembedded-core-contrib repository) (From OE-Core rev: ebb6ef1dbc7e03a4b7030b3056bd0fa59fdd047b) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-07qemu: upgrade to 2.12.0Martin Jansa
* drop patches which are now included upstream * revert "linux-user: fix mmap/munmap/mprotect/mremap/shma" which is causing 0010-linux-user-Fix-webkitgtk-hangs-on-32-bit-x86-target.patch to stop working and qemu-i386 hanging during gobject-introspection in webkitgtk when building for qemux86 with musl (From OE-Core rev: e9d6e09bb51a857ce248f45124548d338a350ba1) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-06bitbake: bitbake: Update version to post release 1.39Richard Purdie
(Bitbake rev: a6a4dd35e3fd112b9fac6fcefe61253a61b8aa2c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04oe-pkgdata-util: package-info: Re-add support for the --extra optionPeter Kjellerstedt
Commit 64d3ce83 broke the --extra option. (From OE-Core rev: cd195bdf5dd2c8ff03c58a63dcabe88b142d2a9c) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04oe-pkgdata-util: Make parse_pkgdatafile() support package suffixed varsPeter Kjellerstedt
Support for variables suffixed with package names, e.g., PKGV_foo, was removed in commit 3d2c87c4, which broke support for recipes that set other versions on their packages than what is in ${PV}. (From OE-Core rev: 38f8284212370999e1e7b0f6559f7cd786e80d1a) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04dropbear: drop run time detection of read-only rootfsAndre McCurdy
Previously, when dropbear was started via its init script, relocation of DROPBEAR_RSAKEY_DIR to support read-only rootfs was handled at run time from within the init script. Update the init script to take advantage of the read-only rootfs config setup by read_only_rootfs_hook() and therefore be consistent with startup under systemd (where relocation of DROPBEAR_RSAKEY_DIR is handled by the read_only_rootfs_hook() at build time). (From OE-Core rev: 4990f87b2f6a8b30c8d1c767636e7f5527f595ba) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04rpm: Restore performance in Docker containersPeter Kjellerstedt
If the maximum number of open file descriptors is much greater than the usual 1024 (for example inside a Docker container), the performance drops significantly. This was reported upstream in: https://bugzilla.redhat.com/show_bug.cgi?id=1537564 which resulted in: https://github.com/rpm-software-management/rpm/pull/444 The pull request above has now been integrated and this commit contains a backport of its three patches, which together change the behavior of rpm so that its performance is now independent of the maximum number of open file descriptors. (From OE-Core rev: 7feed9ccfc4e656c6264f07e13d7e9ef69bdfb06) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04Revert "rpm: add a patch to help with Docker performance issues"Peter Kjellerstedt
This reverts commit 6f1822e5f1eaafd8bc46e999de730c1fcca77f3a. This patch only solved a part of the problem. (From OE-Core rev: 78c4eb6ea4230a4f9199aa3fa7b84d2aea465b95) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04busybox: Fix lzma segfaultsAndrej Valek
- fix multiple lzma segmentation faults - patch includes multiple fixing commits - test-cases have been removed due to binary data (From OE-Core rev: e865e5056235a9b4e3911d4c734a3ffa71bb9e62) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04bitbake.conf: drop redundant -nv from FETCHCMD_wgetAndre McCurdy
Since the addition of progress reporting, the wget fetcher will over-ride -nv by unconditionally appending "--progress=dot -v" to the final wget command line. http://git.openembedded.org/bitbake/commit/?id=4027649f422ee64b1c4e1ad8d48ac295050afbff (From OE-Core rev: 69f4f4aa56291e1e507a62d45834df65d699ec51) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04oeqa/core/target/ssh.py: increase maximum read bytes from 1024 to 4096Chen Qi
When running testimage task for core-image-sato-sdk, the following error appeared. UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 at position 0: invalid start byte Checking the codes, I found it's caused by setting a 1024 limit for the read method of the StreamReader object. Comments from the manual: """ The chars argument indicates the number of decoded code points or bytes to return. The read() method will never return more data than requested, but it might return less, if there is not enough available. """ When running `systemctl status --full' on target, this error occurs. This patch increase the bytes limit to 4096 to fix the error. (From OE-Core rev: f1fad60ae3be4450aca6058d5665fb10a9148b44) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04testimage.bbclass: move codes into testimage_mainChen Qi
testimage-auto is expected to run testimage task's codes automatically. But in fact, it's currently missing some codes, including testimage_sanity and create_rpm_index. This leads to the problem of unexpected runtime failure of test_dnf_makecache. The error message is as below. RESULTS - dnf.DnfRepoTest.test_dnf_makecache - Testcase 1744: ERROR This error is caused by the fact that create_rpm_index is not executed before running the tests. There's no reason why such codes should not be in testimage_main, so move them into it. (From OE-Core rev: fa7ba486ded13907f63f9300f66350ba2835a3f7) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04bitbake.conf: fix HOSTTOOLS setting related to image testingChen Qi
A list of tools are added to HOSTTOOLS depending on if we inherit testimage or not. Unfortunately, if we use TEST_IMAGE variable to automate the test, these tools are not added to HOSTTOOLS. Modify the condition to also check TEST_IMAGE to fix the above problem. Also, change to use if...else... instead of list index for such setting. (From OE-Core rev: 263f8ad612674b0b47cd980212556332c17cb370) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04oeqa/runtime/cases/multilib.py: fix test_file_connman skipping logicChen Qi
The test_file_connman should be executed only when 'lib32-connman' is installed and 'connman' is not installed. When lib32-connman and connman are both installed, the /usr/sbin/connmand could be from connman or lib32-connman, depending on the installation order. What we want to check is the connmand command from lib32-connman, so we need to make sure that connman is not there to cause chaos. (From OE-Core rev: bc6839394c06bb695b92b2183337e7381da1e86c) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-04oeqa/runtime/cases/multilib.py: skip if needed packages are not availableChen Qi
1) The test cases use 'readelf' command to do the check. This command is from binutils. So skip the test if the needed binutils package is not installed. The related error message in log.do_testimage is like below. Output: sh: readelf: not found 2) The test case tests /lib/libc.so.6 from lib32-libc6. So skip the test if lib32-libc6 is not installed. The related error message in log.do_testimage is like below. Output: readelf: Error: 'lib/libc.so.6': No such file (From OE-Core rev: eae929a5c224f5c3468d6a0466d1bbb3f678a5a1) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>