tests: flash_simulator: Add native posix support
Added support for native posix boards to flash_simulator tests by making sure that flash layout lines up with layout expected by tests. Resolves #25109 Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
parent
f32eeba925
commit
57671d9716
3 changed files with 23 additions and 1 deletions
11
tests/drivers/flash_simulator/boards/native_posix.overlay
Normal file
11
tests/drivers/flash_simulator/boards/native_posix.overlay
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&flash0 {
|
||||||
|
erase-block-size = <1024>;
|
||||||
|
write-block-size = <4>;
|
||||||
|
reg = <0x00000000 DT_SIZE_K(1024)>;
|
||||||
|
};
|
11
tests/drivers/flash_simulator/boards/native_posix_64.overlay
Normal file
11
tests/drivers/flash_simulator/boards/native_posix_64.overlay
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&flash0 {
|
||||||
|
erase-block-size = <1024>;
|
||||||
|
write-block-size = <4>;
|
||||||
|
reg = <0x00000000 DT_SIZE_K(1024)>;
|
||||||
|
};
|
|
@ -1,4 +1,4 @@
|
||||||
tests:
|
tests:
|
||||||
drivers.flash.flash_simulator:
|
drivers.flash.flash_simulator:
|
||||||
platform_whitelist: qemu_x86
|
platform_whitelist: qemu_x86 native_posix native_posix_64
|
||||||
tags: driver
|
tags: driver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue