Home
last modified time | relevance | path

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

/littlefs-2.7.6/tests/
Dtest_exhaustion.toml1 [[case]] # test running a filesystem to exhaustion
3 define.LFS_BLOCK_COUNT = 256 # small bd so test runs faster
24 sprintf(path, "roadrunner/test%d", i);
53 sprintf(path, "roadrunner/test%d", i);
77 sprintf(path, "roadrunner/test%d", i);
85 [[case]] # test running a filesystem to exhaustion
88 define.LFS_BLOCK_COUNT = 256 # small bd so test runs faster
106 sprintf(path, "test%d", i);
135 sprintf(path, "test%d", i);
159 sprintf(path, "test%d", i);
[all …]
Dtest_move.toml994 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
999 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1004 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1014 lfs_file_write(&lfs, &files[0], "test.4", 7) => 7;
1015 lfs_file_write(&lfs, &files[1], "test.5", 7) => 7;
1016 lfs_file_write(&lfs, &files[2], "test.6", 7) => 7;
1055 assert(strcmp((char*)buffer, "test.4") == 0);
1059 assert(strcmp((char*)buffer, "test.5") == 0);
1063 assert(strcmp((char*)buffer, "test.6") == 0);
1073 lfs_file_write(&lfs, &files[0], "test.7", 7) => 7;
[all …]
Dtest_evil.toml6 [[case]] # invalid tail-pointer test
25 // test that mount fails gracefully
29 [[case]] # invalid dir pointer test
58 // test that accessing our bad dir fails, note there's a number
75 [[case]] # invalid file pointer test
104 // test that accessing our bad file fails, note there's a number
123 [[case]] # invalid pointer in CTZ skip-list test
165 // test that accessing our bad file fails, note there's a number
202 // test that mount fails gracefully
212 [[case]] # metadata-pair threaded-list loop test
[all …]
Dtest_relocations.toml2 [[case]] # dangling split dir test
23 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
32 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
44 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
55 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
62 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
68 [[case]] # outdated head test
89 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
98 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
103 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
[all …]
Dtest_paths.toml2 [[case]] # simple path test
48 [[case]] # dot path test
74 [[case]] # dot dot path test
104 [[case]] # trailing dot path test
126 [[case]] # leading dot path test
138 [[case]] # root dot dot path test
224 [[case]] # superblock conflict test
240 [[case]] # max path test
264 [[case]] # really big path test
Dtest_alloc.toml5 [[case]] # parallel allocation test
48 [[case]] # serial allocation test
87 [[case]] # parallel allocation reuse test
142 [[case]] # serial allocation reuse test
193 [[case]] # exhaustion test
229 [[case]] # exhaustion wraparound test
277 [[case]] # dir exhaustion test
414 [[case]] # chained dir exhaustion test
485 [[case]] # split dir test
530 [[case]] # outdated lookahead test
[all …]
Dtest_interspersed.toml2 [[case]] # interspersed file test
62 [[case]] # interspersed remove file test
115 [[case]] # remove inconveniently test
175 [[case]] # reentrant interspersed file test
Dtest_badblocks.toml5 define.LFS_BLOCK_COUNT = 256 # small bd so test runs faster
79 define.LFS_BLOCK_COUNT = 256 # small bd so test runs faster
152 define.LFS_BLOCK_COUNT = 256 # small bd so test runs faster
Dtest_entries.toml8 [[case]] # entry grow test
97 [[case]] # entry shrink test
186 [[case]] # entry spill test
259 [[case]] # entry push spill test
348 [[case]] # entry push spill two test
452 [[case]] # entry drop test
Dtest_dirs.toml105 sprintf(path, "test%03d", i);
119 sprintf(path, "test%03d", i);
132 sprintf(oldpath, "test%03d", i);
329 sprintf(path, "test%03d", i);
345 sprintf(path, "test%03d", i);
358 sprintf(oldpath, "test%03d", i);
Dtest_superblocks.toml1 [[case]] # simple formatting test
Dtest_orphans.toml1 [[case]] # orphan test
Dtest_files.toml2 [[case]] # simple file test
/littlefs-2.7.6/
Dlfs_util.h120 #define LFS_ASSERT(test) __ASSERT_NO_MSG(test) argument
122 #define LFS_ASSERT(test) assert(test)
125 #define LFS_ASSERT(test)
D.gitignore9 test.c
Dlfs.c4410 struct lfs1_disk_dir test; in lfs1_dir_fetch() local
4411 int err = lfs1_bd_read(lfs, tpair[i], 0, &test, sizeof(test)); in lfs1_dir_fetch()
4412 lfs1_dir_fromle32(&test); in lfs1_dir_fetch()
4420 if (valid && lfs_scmp(test.rev, dir->d.rev) < 0) { in lfs1_dir_fetch()
4424 if ((0x7fffffff & test.size) < sizeof(test)+4 || in lfs1_dir_fetch()
4425 (0x7fffffff & test.size) > lfs->cfg->block_size) { in lfs1_dir_fetch()
4430 lfs1_dir_tole32(&test); in lfs1_dir_fetch()
4431 lfs1_crc(&crc, &test, sizeof(test)); in lfs1_dir_fetch()
4432 lfs1_dir_fromle32(&test); in lfs1_dir_fetch()
4433 err = lfs1_bd_crc(lfs, tpair[i], sizeof(test), in lfs1_dir_fetch()
[all …]
DREADME.md194 The littlefs comes with a test suite designed to run on a PC using the
199 make test
/littlefs-2.7.6/scripts/
Dtest.py202 def test(self, exec=[], persist=False, cycles=None, member in TestCase
301 def test(self, exec=[], **args): member in ValgrindTestCase
313 return super().test(exec=exec, **args)
323 def test(self, persist=False, gdb=False, failure=None, **args): member in ReentrantTestCase
333 return super().test(gdb=gdb, persist=persist, cycles=cycles,
340 return super().test(persist=persist, cycles=cycles, **args)
544 def test(self, **args): member in TestSuite
554 result = perm.test(**args)
691 suite.test(**args)
735 failure.case.test(failure=failure, **args)
[all …]