Commit Graph

33 Commits

Author SHA1 Message Date
Richard Purdie
12ea266a92 oeqa/systemd_boot: Ensure ssh-pregen-hostkeys are available for the test
Since ssh-pregen-hostkeys is now restricted to qemu machines, add in configuration
allowing it to become available for this test on genericx86-64.

(From meta-yocto rev: b65a1e39dea6d215221f400709f7f3f4c110a948)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-05-13 16:28:53 +01:00
Richard Purdie
92d6170c32 oeqa/runtime: Move files from oe-core to bsp layer
These were accidentally added to oe-core, move to the correct place in this
layer.

(From meta-yocto rev: d3d9f79d759e5c7818f17bf1331230d0d53cde1a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 12:27:21 +00:00
Richard Purdie
18e879ae05 meta-yocto-bsp: Remove accidentally added files
Move accidentally added files to the correct layer.

(From OE-Core rev: ad251812b740a06c0f8f2dab637a61cfff73c484)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 12:27:21 +00:00
Ross Burton
2a20575e52 meta-yocto-bsp/oeqa/parselogs: add BSP-specific ignores
Add machine-specific ignores from oe-core to meta-yocto-bsp.

(From OE-Core rev: 97dacfa0ff170cfe411563e93af8890f3ced6132)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Paul Gortmaker
0c64d0e431 yocto-bsp: drop MIPS Edgerouter support
As per ongoing discussions, there is a general desire to try and update
our hardware reference platforms when an appropriate (newer) substitute
is available.  However, in the case of MIPS, there isn't an obvious one
to choose.  But continuing to maintain support for an old board that
hasn't been available for purchase for years doesn't make sense either.

So we are dropping support for the Edgerouter for future releases.  The
MIPS architecture will still get coverage via QEMU build/boot testing.

(From meta-yocto rev: 5ea231c6c6387804a85adf15d3f03bdae9b2be25)

Signed-off-by: Paul Gortmaker <paulg@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-11 09:15:19 +01:00
Martin Jansa
df3ce81ed3 selftest: systemd_boot.py: respect IMAGE_LINK_NAME
* use IMAGE_LINK_NAME instead of hardcoding
  core-image-minimal-genericx86-64.wic assumption

[YOCTO #12937]

(From meta-yocto rev: d0557c03c5fdeb294f8461ca90f875f0387bff8a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-30 12:32:30 +01:00
Ross Burton
18f40dfdfd oeqa/controllers: update for MasterImageHardwareTarget->Controller...
oe-core f87b328 renamed MasterImageHardwareTarget to
ControllerImageHardwareTarget, but these files were left out of the
updates.

(From meta-yocto rev: 8e578551e14e90da20701bb8a9598e2bb25f74e6)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25 12:41:48 +00:00
Richard Purdie
746d5b3bfd oeqa/systemd_boot: Ensure wic-tools are available
If mtools isn't present on the underlying system this test would fail.
Ensure wic-tools is available in a similar way to other wic selftests
in OE-Core.

(From meta-yocto rev: 5d48d41a3f93ca0e7085ce3c0f646b1d0c8d52d1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-15 09:08:43 +00:00
Chee Yang Lee
ad0d8d2a77 selftest/systemd-boot: test against wic image
effort to remove live for x86 from default image
see https://bugzilla.yoctoproject.org/show_bug.cgi?id=11291

reduce dependency on hddimg, change the test to based on wic image.

(From meta-yocto rev: 8cce1493f625664c21c156a36d9c9fb6d4dd4b1f)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-15 09:08:43 +00:00
Richard Purdie
6172116954 oeqa/systemd_boot: Drop OETestID
Matching changes in OE-Core. drop OETestID.

(From meta-yocto rev: 58e50924e5fd0b3dae5ac3413c40f0f16a857b72)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-09 16:32:34 +01:00
Richard Purdie
e54754a9ac oeqa/systemdboot: Cleanup/improve the test
The second test is designed only to run after the first so we may as
well merge these together into one.

Also, use DEPLOY_DIR_IMAGE rather than constructing paths by hand. Drop
the misleading comment which was likely due to the original code reading
DEPLOY_DIR_IMAGE before setting MACHINE. Only read the variable once
which reduces bitbake -e calls.

Merge the setup/build functions into the main test as there is no other
use of them.

Also ensure the main second test pieces aren't masked out by a missing
file without showing test failures.

(From meta-yocto rev: 1b46e2c1acd2c0cd557740220bbc3ccb77dae127)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-07 12:13:14 +01:00
Richard Purdie
e6f7c57b55 oeqa/selftest/systemd_boot: Never use cleansstate in QA tests without 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.

(From meta-yocto rev: 1ed60bfb46569a8b8c29f24187390ba79686486a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-15 16:19:05 +01:00
Joshua Lock
ab12832807 meta-yocto-bsp/lib/oeqa: remove yoctobsp selftest
The yocto-bsp script has been removed, thus there's no need for this test
for the script.

(From meta-yocto rev: 280130bb02b550e882eb203328689b1526fa462c)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-11-05 22:33:24 +00:00
Jose Perez Carranza
00e2566f0e oeqa/selftest/systemdboot: Add Test to check boot file is created correctly
Add Test case to verify if EFI bootloader for
systemd boot is correctly build inside of image.

[YOCTO #9903]

(From meta-yocto rev: ce060ee09d00d737007f4a0569e13bebbcde0b3f)

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-23 14:13:59 +01:00
Aníbal Limón
6dcbe84505 selftest: Migrate systemd_boot test case to the new framework
- systemd_boot.py: Use the new case class and change decorator for id
- __init__.py: Because isn't needed now

(From meta-yocto rev: 59b2135007d80b3b76ef1256bf5d5aa6076178bc)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-06-06 19:02:44 +01:00
Alejandro Hernandez
bad00064ef gummiboot: Remove gummiboot tests
Since we replaced gummiboot with systemd-boot
along with its tests, the gummiboot tests are
no longer necessary.

[YOCTO #10332]

(From meta-yocto rev: 43c3f96d0395c9ceb0f3c63a026ec34073fad69e)

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>
2017-01-17 11:29:29 +00:00
Juro Bystricky
a0374e92a8 edgerouter.py: avoid python3 exception
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

(From meta-yocto rev: 5ff5dc2767dfef93c314e7465a52ca2dce553604)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-12 15:16:42 +00:00
Jose Perez Carranza
d11e8e1109 systemd_boot: Enable module to test systemd bootloader
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]

(From meta-yocto rev: 4366060660f15592261227ca47088b492383f8cc)

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>
2016-08-11 13:35:57 +01:00
Richard Purdie
2c043e3655 Revert "systemd_boot: Enable module to test systemd bootloader"
This reverts commit 3f859816aef3c3dba35cfbea15f0c56483205544, applied
to the wrong repo.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-11 13:35:57 +01:00
Jose Perez Carranza
e6e05a30b1 systemd_boot: Enable module to test systemd bootloader
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]

(From OE-Core rev: 3f859816aef3c3dba35cfbea15f0c56483205544)

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>
2016-07-26 08:56:27 +01:00
Leonardo Sandoval
979de7703c lib/oeqa/selftest/yoctobsp: Basic tests for yocto-bsp script
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

(From meta-yocto rev: e84fb6fe8219f874b0157bdf53489bbb5f7f81cb)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-10-01 07:43:39 +01:00
Paul Eggleton
5e357ed88f oe-selftest: restore gummiboot tests
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).

(From meta-yocto rev: 8e945e39327869c6b53959c5eb324ba3e4cb0b20)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-07-28 11:26:10 +01:00
Corneliu Stoicescu
d66c567b11 oeqa/controllers/beaglebonetarget.py: fix deploy when kernel file is a 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.

(From meta-yocto rev: 849b1e319a84a710259223f57b2e4c74bc64fe75)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-17 14:56:49 +01:00
Corneliu Stoicescu
868a234075 grubtarget.py: Change 'test' GRUB entry selection method
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.

(From meta-yocto rev: 962003f77258bd7d1e8b3fb034c6e256c7879c8d)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:01 +01:00
Cristian Iorga
581a06afb5 meta-yocto-bsp: oeqa/controllers: add GrubTarget
add control for generic grub pc via serial line

Implementation [YOCTO #5615].

(From meta-yocto rev: dc3d298688c2265b023219c81124065c36eeb417)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:01 +01:00
Richard Purdie
57bbb1af5e Revert "meta-yocto-bsp: oeqa/controllers: add GrubTarget"
This reverts commit 01968e9244d0cf3deb1ec5cfb8e562d3b364add6.

Wrong repo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:00 +01:00
Cristian Iorga
d7b3683834 meta-yocto-bsp: oeqa/controllers: add GrubTarget
add control for generic grub pc via serial line

Implementation [YOCTO #5615].

(From OE-Core rev: 01968e9244d0cf3deb1ec5cfb8e562d3b364add6)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-23 17:54:30 +01:00
Corneliu Stoicescu
55c8588981 controllers/edgeroutertarget.py: enable dynamical determination of rootfs type
[YOCTO #6375]

(From meta-yocto rev: 375ab07adf29e94ae09b7c087dec4ca1443babfc)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:16 +01:00
Corneliu Stoicescu
1655fe2eae controllers/beaglebonetarget.py: enable dynamical determination of rootfs type
[YOCTO #6375]

(From meta-yocto rev: 953b51b2ba5862ad24e2ad4f6cf9cefff7af14c9)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:16 +01:00
Corneliu Stoicescu
d5deca211b beaglebonetarget.py: Add support for get_extra_files() classmethod
[YOCTO #6254]

Adding support for the get_extra_files() method to the BeagleBoneTarget class.

(From meta-yocto rev: b719ff579fe2a5f5a0d19a9091eaa37e0f145384)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:15 +01:00
Corneliu Stoicescu
99006ef296 oeqa/controllers/beaglebonetarget.py: fix conditions for files copied to /boot
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.

(From meta-yocto rev: e06e354165673bfb6b531d1f78c468b4c56dbd18)

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-06-03 10:38:24 +01:00
Paul Eggleton
57acd08270 meta-yocto-bsp: oeqa/controllers: add EdgeRouterTarget
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].

(From meta-yocto rev: 6e28284f0dacb40f7533161bfaeb637723297947)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30 21:52:44 +01:00
Stefan Stanacar
ceb5c4d8c1 meta-yocto-bsp: oeqa/controllers: add BeagleBoneTarget
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].

(From meta-yocto rev: 8235464faf480811b17b062cb9aad8ebf1cd2a67)

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>
2014-04-30 21:52:43 +01:00