Home
last modified time | relevance | path

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

/littlefs-latest/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.toml1053 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1058 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1063 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1073 lfs_file_write(&lfs, &files[0], "test.4", 7) => 7;
1074 lfs_file_write(&lfs, &files[1], "test.5", 7) => 7;
1075 lfs_file_write(&lfs, &files[2], "test.6", 7) => 7;
1117 assert(strcmp((char*)buffer, "test.4") == 0);
1121 assert(strcmp((char*)buffer, "test.5") == 0);
1125 assert(strcmp((char*)buffer, "test.6") == 0);
1135 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_superblocks.toml1 # simple formatting test
26 // but we don't lose power in this test so we can assert the magic string
73 # test we can read superblock info through lfs_fs_stat
80 // test we can mount and read fsinfo
108 // test we can mount and read these params with the original config
179 // but we don't lose power in this test so we can assert the magic string
306 lfs_file_open(&lfs, &file, "test",
316 lfs_file_open(&lfs, &file, "test", LFS_O_RDONLY) => 0;
361 lfs_file_open(&lfs, &file, "test",
371 lfs_file_open(&lfs, &file, "test", LFS_O_RDONLY) => 0;
[all …]
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
64 # serial allocation test
121 # parallel allocation reuse test
188 # serial allocation reuse test
253 # exhaustion test
301 # exhaustion wraparound test
361 # dir exhaustion test
516 # chained dir exhaustion test
594 # split dir test
643 # 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);
383 sprintf(path, "test%03d", i);
403 sprintf(path, "test%03d", i);
416 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_paths.toml2 # simple path test
249 # absolute path test
745 # test trailing slashes
779 // still create so we have something to test
1350 # test trailing dots, these get a bit weird
1376 // still create so we have something to test
1399 // still create so we have something to test
2014 # test trailing dot dots, these get really weird
2045 // still create so we have something to test
2068 // still create so we have something to test
[all …]
Dtest_bd.toml1 # These tests don't really test littlefs at all, they are here only to make
Dtest_seek.toml557 # test possible overflow/underflow conditions
/littlefs-latest/
Dlfs_util.h114 #define LFS_ASSERT(test) assert(test) argument
116 #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.c5440 struct lfs1_disk_dir test; local
5441 int err = lfs1_bd_read(lfs, tpair[i], 0, &test, sizeof(test));
5442 lfs1_dir_fromle32(&test);
5450 if (valid && lfs_scmp(test.rev, dir->d.rev) < 0) {
5454 if ((0x7fffffff & test.size) < sizeof(test)+4 ||
5455 (0x7fffffff & test.size) > lfs->cfg->block_size) {
5460 lfs1_dir_tole32(&test);
5461 lfs1_crc(&crc, &test, sizeof(test));
5462 lfs1_dir_fromle32(&test);
5463 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