test_spiffs.h
Go to the documentation of this file.
21 (SPIFFS_CFG_PHYS_SZ(fs) / SPIFFS_CFG_LOG_PAGE_SZ(fs)- (fs)->block_count * SPIFFS_OBJ_LOOKUP_PAGES(fs))
104 int run_file_config(int cfg_count, tfile_conf* cfgs, int max_runs, int max_concurrent_files, int dbg);
void enable(Handler &commandHandler, HardwareSerial &serial)
Definition: spiffs.h:231
Definition: test_spiffs.h:45
Definition: test_spiffs.h:51
void invoke_error_after_write_bytes(u32_t b, char once_only)
void memrand(u8_t *b, int len)
void dump_erase_counts(spiffs *fs)
void dump_flash_access_stats()
void set_flash_ops_log(int enable)
u32_t get_flash_ops_log_write_bytes()
u32_t get_flash_ops_log_read_bytes()
u32_t get_spiffs_file_crc(char *name)
void _teardown()
u32_t get_spiffs_file_crc_by_fd(spiffs_file fd)
void _setup()
void fs_mount_dump(char *fname, u32_t addr_offset, u32_t phys_addr, u32_t phys_size, u32_t phys_sector_size, u32_t log_block_size, u32_t log_page_size)
void area_read(u32_t addr, u8_t *buf, u32_t size)
int read_and_verify_fd(spiffs_file fd, char *name)
spiffs __fs
void _setup_test_only()
void hexdump(u32_t addr, u32_t len)
int run_file_config(int cfg_count, tfile_conf *cfgs, int max_runs, int max_concurrent_files, int dbg)
int count_taken_fds(spiffs *fs)
void dump_page(spiffs *fs, spiffs_page_ix p)
void area_set(u32_t addr, u8_t d, u32_t size)
u32_t tfile_get_size(tfile_size s)
void invoke_error_after_read_bytes(u32_t b, char once_only)
int read_and_verify(char *name)
char * make_test_fname(const char *name)
void test_unlock(spiffs *fs)
void test_lock(spiffs *fs)
void fs_store_dump(char *fname)
void fs_reset()
void fs_reset_specific(u32_t addr_offset, u32_t phys_addr, u32_t phys_size, u32_t phys_sector_size, u32_t log_block_size, u32_t log_page_size)
int test_create_file(char *name)
void fs_set_validate_flashing(int i)
void fs_load_dump(char *fname)
void clear_flash_ops_log()
void area_write(u32_t addr, u8_t *buf, u32_t size)
void clear_test_path()
void fs_set_addr_offset(u32_t offset)
s32_t fs_mount_specific(u32_t phys_addr, u32_t phys_size, u32_t phys_sector_size, u32_t log_block_size, u32_t log_page_size)
int test_create_and_write_file(char *name, int size, int chunk_size)
int get_error_count()