Commit Graph

15 Commits

Author SHA1 Message Date
Andrej Butok a019cc2c9f test: mcuboot: enable test on lpc55s platforms
Enable mcuboot test for lpcxpresso55s06/16/28/36/69 boards.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-01-19 10:33:44 +01:00
Andrej Butok 25cb4683d2 test: mcuboot: enable test on rt1010/1015/1040 and k22f/82f platforms
Enable mcuboot test for mimxrt1010/1015/1040 and frdm_k22f/82f boards

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2023-12-18 09:28:34 +01:00
Hake Huang d05e274735 test: test_mcuboot: enable test on NXP MCUX platforms
NXP MCUX has no issue with #58080, so enable tests for NXP

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2023-10-27 10:51:05 +02:00
Anas Nashif 8c6a3dbe37 tests: mcuboot: fix identifier: boot -> bootloader
Be consistent with other tests using bootloader.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-11 14:19:40 +03:00
Grzegorz Swiderski 6640c04df6 sysbuild: Remove IMAGES variable
This variable was originally provided for two indended purposes:

  * Let users manually add a new image in a desired order in the list.
  * Let users set build-only images, which are excluded from the list.

Given the recent additions of the `sysbuild_add_dependencies()` function
and the `BUILD_ONLY` parameter, `IMAGES` should be considered obsolete.

Furthermore, the list of images added to sysbuild should be updated
automatically when calling `ExternalZephyrProject_Add()`. This is now
possible by using a GLOBAL property internal to sysbuild.

With that, the `IMAGES` variable can be removed. Its existing usage for
image ordering is replaced with `sysbuild_add_dependencies()` treewide.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-09-05 15:27:04 +02:00
Gerard Marull-Paretas fc312b096d tests: boot: mcuboot: disable test
Disable test due to observed issues with CONFIG_BUILD_OUTPUT_ADJUST_LMA.
Refer to https://github.com/zephyrproject-rtos/zephyr/issues/58080.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-25 16:29:40 -04:00
Denis Mingulov f27d360d96 tests: boot: test_mcuboot: Add test with asserts enabled
Chain-load images might behave differently comparing to the usual
standalone boot, as for example some peripheral initialization
might be done already.

Add an additional test with CONFIG_ASSERT=y as enabled asserts
could break up chain-loaded image.

Signed-off-by: Denis Mingulov <denis@mingulov.com>
2023-05-23 08:55:00 +02:00
Gerard Marull-Paretas 93b63df762 samples, tests: convert string-based twister lists to YAML lists
Twister now supports using YAML lists for all fields that were written
as space-separated lists. Used twister_to_list.py script. Some artifacts
on string length are due to how ruamel dumps content.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-10 09:52:37 +02:00
Keith Packard 0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
Grzegorz Chwierut 482c94819f tests: boot: test_mcuboot: Add mcuboot log level
Added logging of MCUboot messages to fix twister test scenario.
Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2023-04-06 18:51:23 +02:00
Jamie McCrae 21c5af7abc tests: boot: test_mcuboot: Add FLASH_MAP and STREAM_FLASH
Adds Kconfig selections that are no longer selected automatically.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-03-03 10:49:32 +01:00
Fabio Baltieri f5b4acac57 yamllint: indentation: fix files in tests/
Fix the YAML files indentation for files in tests/.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-01-04 14:23:53 +01:00
Fabio Baltieri 5c32300861 yamllint: fix all yamllint truthy errors
Fix all thruthy errors detected by yamllint:

yamllint -f parsable -c .yamllint $( find -regex '.*\.y[a]*ml' ) | \
  grep '(truthy)'

This only accepts true/false for boolean properties. Seems like python
takes all sort of formats:

https://github.com/yaml/pyyaml/blob/master/lib/yaml/constructor.py#L224-L235

But the current specs only mention "true" or "false"

https://yaml.org/spec/1.2.2/#10212-boolean

Which is the standard yamllint config.

Excluding codeconv and workflow files, as some are using yes/no instead
in the respective documentation.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-01-04 01:16:45 +09:00
Anas Nashif ba7d730e9b tests/samples: use integration_plaforms in more tests/samples
integration_platforms help us control what get built/executed in CI and
for each PR submitted. They do not filter out platforms, instead they
just minimize the amount of builds/testing for a particular
tests/sample.
Tests still run on all supported platforms when not in integration mode.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-29 16:03:23 +01:00
Daniel DeGrasse 0dacc2583d tests: boot: add mcuboot test
Add test to verify mcuboot support. This test is only enabled for specific
platforms, since it it not possible to filter for mcuboot support.
Sysbuild support is required to flash multiple samples using twister.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-10-04 14:06:58 -04:00