summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib
AgeCommit message (Collapse)Author
2018-07-15oeqa/selftest/systemd_boot: Never use cleansstate in QA tests without ↵Richard Purdie
special handling of SSTATE_DIR Removing things straight from the live sstate directory is prone to issues since other builds may be relying on the artefact presence. Also, cleansstate is very slow on the huge sstate that the autobuilder has on slow NFS drives. This may well be causing long buildtimes in oe-selftest as the time taken to remove the artefact by be long. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-11-05meta-yocto-bsp/lib/oeqa: remove yoctobsp selftestJoshua Lock
The yocto-bsp script has been removed, thus there's no need for this test for the script. Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-06-23oeqa/selftest/systemdboot: Add Test to check boot file is created correctlyJose Perez Carranza
Add Test case to verify if EFI bootloader for systemd boot is correctly build inside of image. [YOCTO #9903] 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>
2017-06-06selftest: Migrate systemd_boot test case to the new frameworkAníbal Limón
- systemd_boot.py: Use the new case class and change decorator for id - __init__.py: Because isn't needed now Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-01-17gummiboot: Remove gummiboot testsAlejandro Hernandez
Since we replaced gummiboot with systemd-boot along with its tests, the gummiboot tests are no longer necessary. [YOCTO #10332] Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-12edgerouter.py: avoid python3 exceptionJuro Bystricky
This fixes an error such as: Exception: File "/master/poky/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py", line 47 self.image_fstype = self.get_image_fstype(d) TabError: inconsistent use of tabs and spaces in indentation Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-11systemd_boot: Enable module to test systemd bootloaderJose Perez Carranza
Module systemd_boot created wtih a class "Systemdboot" and a test case "test_efi_systemdboot_images_can_be_built" to test new systemd bootloader. [YOCTO #9706] Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-09-30lib/oeqa/selftest/yoctobsp: Basic tests for yocto-bsp scriptLeonardo Sandoval
Unit tests include listing properties and creating BSP using the default kernel, both tests done for supported architectures. Test can be manually executed with: $ oe-selftest --run-tests yoctobsp.YoctoBSP Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-07-28oe-selftest: restore gummiboot testsPaul Eggleton
These are the gummiboot tests recently removed from OE-Core, with the following changes: * Make them use MACHINE = "genericx86-64" instead of "nuc" and remove all usage of meta-intel * Use DEPLOY_DIR instead of assuming build directory will be in the default path relative to COREBASE * Fix build test to actually check if the file was created as part of the test instead of possibly being around from a previous build * Fix wic test to actually check the output to find the name of the .direct file that wic has created, instead of passing if any .direct file happens to exist in /var/tmp/wic (We can now add these in this layer courtesy of Chris Larson's OE-Core commit 182b8ed9f26ed8b6a8eb6dcaec82db9aca14b010). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-17oeqa/controllers/beaglebonetarget.py: fix deploy when kernel file is a ↵Corneliu Stoicescu
broken link Sometimes the uncompressed rootfs image contains boot/uImage but if it's a symlink, it seems broken from the master image's point of view. Because [ -e /mnt/testrootfs/boot/uImage ] will return 1, it will proceed to copy the backup kernel file over it but cp ~/test-kernel /mnt/testrootfs/boot/uImage will also fail with: cp: not writing through dangling symlink Adding a new check here, if the boot/uImage is a link, leave it as is. Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04grubtarget.py: Change 'test' GRUB entry selection methodCorneliu Stoicescu
Using character combinations for <arrow down> to select the test image will not always work. Using the '--hotkey x' option added to the 'test' GRUB menuentry to select the 'test' GRUB entry. Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04meta-yocto-bsp: oeqa/controllers: add GrubTargetCristian Iorga
add control for generic grub pc via serial line Implementation [YOCTO #5615]. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17controllers/edgeroutertarget.py: enable dynamical determination of rootfs typeCorneliu Stoicescu
[YOCTO #6375] Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17controllers/beaglebonetarget.py: enable dynamical determination of rootfs typeCorneliu Stoicescu
[YOCTO #6375] Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17beaglebonetarget.py: Add support for get_extra_files() classmethodCorneliu Stoicescu
[YOCTO #6254] Adding support for the get_extra_files() method to the BeagleBoneTarget class. Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-03oeqa/controllers/beaglebonetarget.py: fix conditions for files copied to /bootCorneliu Stoicescu
Using '[ ! -e /mnt/testrootfs/boot/uImage ] && cp ~/test-kernel /mnt/testrootfs/boot/uImage' would result in exit code 1 if the first condition is not met. Changing the code to return exit status 0 if /mnt/testrootfs/boot/uImage exists. Also adding this change to dtb files check. Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30meta-yocto-bsp: oeqa/controllers: add EdgeRouterTargetPaul Eggleton
Based on BeagleBoneTarget, this provides support for deploying images and running tests on an EdgeRouter Lite (edgerouter). The device must be set up to boot into the master image already - see the instructions in the file. Implements [YOCTO #6253]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30meta-yocto-bsp: oeqa/controllers: add BeagleBoneTargetStefan Stanacar
With a serial connection and beaglebone setup correctly as per README.hardware (nand erased, default uboot config assumed, etc) and a correctly deployed core-image-testmaster, we could actually deploy and test AB built images. In the default configuration u-boot will do the right thing and will always boot into the master image (rootfs on second fs on the card, kernel in /boot on the same partition). We just need to tell it for the test image to use the third partition and update the kernel cmdline. Pexpect is used to interact with whatever serial connection we have (which for this target is mandatory). There is some handling for images that don't contain the kernel and dtb files as needed (such as core-image-minimal). Implements [YOCTO #6252]. Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>