File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,8 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
55project (fs_fcb)
66
77FILE (GLOB app_sources src/*.c)
8+ if (NOT CONFIG_FCB_ALLOW_FIXED_ENDMARKER)
9+ list (REMOVE_ITEM "src/fcb_test_crc_disabled_after_enabled.c" )
10+ endif ()
811target_sources (app PRIVATE ${app_sources} )
912target_include_directories (app PRIVATE ${ZEPHYR_BASE} /subsys/fs/fcb)
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ extern "C" {
2424#define TEST_FCB_FLASH_AREA_ID FIXED_PARTITION_ID(TEST_FCB_FLASH_AREA)
2525
2626extern struct fcb test_fcb ;
27+ #if defined(CONFIG_FCB_ALLOW_FIXED_ENDMARKER )
2728extern struct fcb test_fcb_crc_disabled ;
29+ #endif
2830
2931extern struct flash_sector test_fcb_sector [];
3032
Original file line number Diff line number Diff line change 1414#include <zephyr/device.h>
1515
1616struct fcb test_fcb = {0 };
17+ #if defined(CONFIG_FCB_ALLOW_FIXED_ENDMARKER )
1718struct fcb test_fcb_crc_disabled = { .f_flags = FCB_FLAGS_CRC_DISABLED };
19+ #endif
1820
1921uint8_t fcb_test_erase_value ;
2022
@@ -139,7 +141,11 @@ static void fcb_pretest_4_sectors(void *data)
139141
140142static void fcb_pretest_crc_disabled (void * data )
141143{
144+ #if defined(CONFIG_FCB_ALLOW_FIXED_ENDMARKER )
142145 fcb_tc_pretest (2 , & test_fcb_crc_disabled );
146+ #else
147+ ztest_test_skip ();
148+ #endif
143149}
144150
145151/*
Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ tests:
1616 filesystem.fcb.native_sim.no_erase :
1717 extra_args : CONFIG_FLASH_SIMULATOR_EXPLICIT_ERASE=n
1818 platform_allow : native_sim
19+ filesystem.fcb.fixed_endmarker :
20+ platform_allow :
21+ - nrf52840dk/nrf52840
22+ - nrf52dk/nrf52832
23+ - nrf51dk/nrf51822
24+ - native_sim
25+ - native_sim/native/64
26+ - mr_canhubk3
27+ tags : flash_circural_buffer
28+ integration_platforms :
29+ - nrf52840dk/nrf52840
30+ extra_args : CONFIG_FCB_ALLOW_FIXED_ENDMARKER=y
1931 filesystem.fcb.native_sim.fcb_0x00 :
2032 extra_args : DTC_OVERLAY_FILE=boards/native_sim_ev_0x00.overlay
2133 platform_allow : native_sim
You can’t perform that action at this time.
0 commit comments