Home
last modified time | relevance | path

Searched refs:test (Results 1 – 19 of 19) sorted by relevance

/littlefs-3.7.0-3.6.0/tests/
Dtest_exhaustion.toml1 # test running a filesystem to exhaustion
4 defines.ERASE_COUNT = 256 # small bd so test runs faster
27 sprintf(path, "roadrunner/test%d", i);
58 sprintf(path, "roadrunner/test%d", i);
84 sprintf(path, "roadrunner/test%d", i);
93 # test running a filesystem to exhaustion
97 defines.ERASE_COUNT = 256 # small bd so test runs faster
117 sprintf(path, "test%d", i);
148 sprintf(path, "test%d", i);
175 sprintf(path, "test%d", i);
[all …]
Dtest_move.toml1045 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1050 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1055 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1065 lfs_file_write(&lfs, &files[0], "test.4", 7) => 7;
1066 lfs_file_write(&lfs, &files[1], "test.5", 7) => 7;
1067 lfs_file_write(&lfs, &files[2], "test.6", 7) => 7;
1109 assert(strcmp((char*)buffer, "test.4") == 0);
1113 assert(strcmp((char*)buffer, "test.5") == 0);
1117 assert(strcmp((char*)buffer, "test.6") == 0);
1127 lfs_file_write(&lfs, &files[0], "test.7", 7) => 7;
[all …]
Dtest_evil.toml26 // test that mount fails gracefully
61 // test that accessing our bad dir fails, note there's a number
113 // test that accessing our bad file fails, note there's a number
133 [cases.test_evil_invalid_ctz_pointer] # invalid pointer in CTZ skip-list test
178 // test that accessing our bad file fails, note there's a number
217 // test that mount fails gracefully
227 [cases.test_evil_mdir_loop] # metadata-pair threaded-list loop test
243 // test that mount fails gracefully
247 [cases.test_evil_mdir_loop2] # metadata-pair threaded-list 2-length loop test
274 // test that mount fails gracefully
[all …]
Dtest_relocations.toml27 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
39 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
52 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
66 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
74 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
105 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
117 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
122 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
134 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
139 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
[all …]
Dtest_paths.toml2 # simple path test
54 # dot path test
83 # dot dot path test
116 # trailing dot path test
141 # leading dot path test
156 # root dot dot path test
256 # superblock conflict test
275 # max path test
303 # really big path test
Dtest_superblocks.toml1 # simple formatting test
52 # test we can read superblock info through lfs_fs_stat
59 // test we can mount and read fsinfo
87 // test we can mount and read these params with the original config
247 lfs_file_open(&lfs, &file, "test",
257 lfs_file_open(&lfs, &file, "test", LFS_O_RDONLY) => 0;
302 lfs_file_open(&lfs, &file, "test",
312 lfs_file_open(&lfs, &file, "test", LFS_O_RDONLY) => 0;
450 lfs_file_open(&lfs, &file, "test",
460 lfs_file_open(&lfs, &file, "test", LFS_O_RDONLY) => 0;
Dtest_compat.toml61 # test we can mount in a new version
79 // now test the new mount
91 # test we can read dirs in a new version
149 # test we can read files in a new version
239 # test we can read files in dirs in a new version
356 # test we can write dirs in a new version
421 # test we can write files in a new version
543 # test we can write files in dirs in a new version
696 # test we can mount in an old version
711 // now test the previous mount
[all …]
Dtest_alloc.toml5 # parallel allocation test
58 # serial allocation test
109 # parallel allocation reuse test
171 # serial allocation reuse test
231 # exhaustion test
274 # exhaustion wraparound test
329 # dir exhaustion test
479 # chained dir exhaustion test
557 # split dir test
606 # outdated lookahead test
[all …]
Dtest_badblocks.toml5 defines.ERASE_COUNT = 256 # small bd so test runs faster
85 defines.ERASE_COUNT = 256 # small bd so test runs faster
164 defines.ERASE_COUNT = 256 # small bd so test runs faster
Dtest_dirs.toml124 sprintf(path, "test%03d", i);
141 sprintf(path, "test%03d", i);
154 sprintf(oldpath, "test%03d", i);
379 sprintf(path, "test%03d", i);
399 sprintf(path, "test%03d", i);
412 sprintf(oldpath, "test%03d", i);
Dtest_orphans.toml62 # test that we only run deorphan once per power-cycle
129 # test that we can persist gstate with lfs_fs_mkconsistent
Dtest_powerloss.toml1 # There are already a number of tests that test general operations under
Dtest_bd.toml1 # These tests don't really test littlefs at all, they are here only to make
/littlefs-3.7.0-3.6.0/
Dlfs_util.h96 #define LFS_ASSERT(test) assert(test) argument
98 #define LFS_ASSERT(test)
D.gitattributes2 # reclassify our test .toml files as C code (which they are 95% of anyways)
D.gitignore25 lfs.test.csv
Dlfs.c5251 struct lfs1_disk_dir test; local
5252 int err = lfs1_bd_read(lfs, tpair[i], 0, &test, sizeof(test));
5253 lfs1_dir_fromle32(&test);
5261 if (valid && lfs_scmp(test.rev, dir->d.rev) < 0) {
5265 if ((0x7fffffff & test.size) < sizeof(test)+4 ||
5266 (0x7fffffff & test.size) > lfs->cfg->block_size) {
5271 lfs1_dir_tole32(&test);
5272 lfs1_crc(&crc, &test, sizeof(test));
5273 lfs1_dir_fromle32(&test);
5274 err = lfs1_bd_crc(lfs, tpair[i], sizeof(test),
[all …]
DREADME.md194 The littlefs comes with a test suite designed to run on a PC using the
199 make test
DSPEC.md195 the CRC tag to force the next commit to fail the valid bit test if it