nuttx-apps/testing/fstest
anjiahao 34f71ec25b fstest:fix build break
fstest_main.c:340:47: note: expected ‘struct fstest_ctx_s *’ but argument is of type ‘fsblkcnt_t’ {aka ‘long long unsigned int’}
  340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
      |                          ~~~~~~~~~~~~~~~~~~~~~^~~
fstest_main.c:1168:13: error: too few arguments to function ‘fstest_gc’
 1168 |       ret = fstest_gc(buf.f_bfree);
      |             ^~~~~~~~~
fstest_main.c:340:12: note: declared here
  340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
      |            ^~~

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-08-11 21:04:44 +08:00
..
CMakeLists.txt cmake/apps: add more applications into cmake support 2023-07-13 19:00:18 +02:00
fstest_main.c fstest:fix build break 2023-08-11 21:04:44 +08:00
Kconfig Added poweroff in fs and mm tests. 2022-11-08 02:52:46 +08:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
README.md testing/fstest:Support test fs with parameter 2021-07-30 21:02:42 -07:00

Testing / fstest Generic File System Test

This is a generic file system test that derives from testing/nxffs. It was created to test the tmpfs file system, but should work with any file system provided that all initialization has already been performed prior to starting the test.

This test a a general test for any file system, but includes some specific hooks for the SPIFFS file system.

  • CONFIG_TESTING_FSTEST Enable the file system example.
  • CONFIG_TESTING_FSTEST_MAXNAME Determines the maximum size of names used in the filesystem.
  • CONFIG_TESTING_FSTEST_MAXFILE Determines the maximum size of a file.
  • CONFIG_TESTING_FSTEST_MAXIO Max I/O, default 347.
  • CONFIG_TESTING_FSTEST_MAXOPEN Max open files.
  • CONFIG_TESTING_FSTEST_MOUNTPT Path where the file system is mounted.
  • CONFIG_TESTING_FSTEST_NLOOPS Number of test loops. default 100.
  • CONFIG_TESTING_FSTEST_VERBOSE Verbose output.

EXAMPLE fstest -m /mnt -n 10 Test /mnt 10 times fstest -h Get help message fstest Test path define by CONFIG_TESTING_FSTEST_MOUNTPT CONFIG_TESTING_FSTEST_NLOOPS times