Home
last modified time | relevance | path

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

/littlefs-3.5.0-3.4.0/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-3.5.0-3.4.0/scripts/
Dtest.py235 def test(self, exec=[], persist=False, cycles=None, member in TestCase
336 def test(self, exec=[], **args): member in ValgrindTestCase
348 return super().test(exec=exec, **args)
358 def test(self, persist=False, gdb=False, failure=None, **args): member in ReentrantTestCase
368 return super().test(gdb=gdb, persist=persist, cycles=cycles,
375 return super().test(persist=persist, cycles=cycles, **args)
592 def test(self, **args): member in TestSuite
602 result = perm.test(**args)
740 suite.test(**args)
806 failure.case.test(failure=failure, **args)
[all …]
/littlefs-3.5.0-3.4.0/
Dlfs_util.h96 #define LFS_ASSERT(test) assert(test) argument
98 #define LFS_ASSERT(test)
D.gitignore11 test.c
Dlfs.c4806 struct lfs1_disk_dir test; local
4807 int err = lfs1_bd_read(lfs, tpair[i], 0, &test, sizeof(test));
4808 lfs1_dir_fromle32(&test);
4816 if (valid && lfs_scmp(test.rev, dir->d.rev) < 0) {
4820 if ((0x7fffffff & test.size) < sizeof(test)+4 ||
4821 (0x7fffffff & test.size) > lfs->cfg->block_size) {
4826 lfs1_dir_tole32(&test);
4827 lfs1_crc(&crc, &test, sizeof(test));
4828 lfs1_dir_fromle32(&test);
4829 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