Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 26) sorted by relevance

12

/littlefs-3.5.0-3.4.0/tests/
Dtest_entries.toml17 sprintf(path, "hi0"); size = 20;
18 lfs_file_open(&lfs, &file, path,
25 sprintf(path, "hi1"); size = 20;
26 lfs_file_open(&lfs, &file, path,
33 sprintf(path, "hi2"); size = 20;
34 lfs_file_open(&lfs, &file, path,
41 sprintf(path, "hi3"); size = 20;
42 lfs_file_open(&lfs, &file, path,
50 sprintf(path, "hi1"); size = 20;
51 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
[all …]
Dtest_relocations.toml23 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
24 lfs_file_open(&lfs, &file, path, LFS_O_CREAT | LFS_O_WRONLY) => 0;
32 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
34 strcmp(info.name, path) => 0;
44 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
45 lfs_remove(&lfs, path) => 0;
55 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
57 strcmp(info.name, path) => 0;
62 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
63 lfs_remove(&lfs, path) => 0;
[all …]
Dtest_dirs.toml24 sprintf(path, "dir%03d", i);
25 lfs_mkdir(&lfs, path) => 0;
38 sprintf(path, "dir%03d", i);
41 assert(strcmp(info.name, path) == 0);
55 sprintf(path, "removeme%03d", i);
56 lfs_mkdir(&lfs, path) => 0;
69 sprintf(path, "removeme%03d", i);
72 assert(strcmp(info.name, path) == 0);
80 sprintf(path, "removeme%03d", i);
81 lfs_remove(&lfs, path) => 0;
[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
162 [[case]] # invalid path tests
240 [[case]] # max path test
249 memset(path, 'w', LFS_NAME_MAX+1);
250 path[LFS_NAME_MAX+1] = '\0';
[all …]
Dtest_exhaustion.toml24 sprintf(path, "roadrunner/test%d", i);
28 lfs_file_open(&lfs, &file, path,
53 sprintf(path, "roadrunner/test%d", i);
57 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
77 sprintf(path, "roadrunner/test%d", i);
78 lfs_stat(&lfs, path, &info) => 0;
106 sprintf(path, "test%d", i);
110 lfs_file_open(&lfs, &file, path,
135 sprintf(path, "test%d", i);
139 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
[all …]
Dtest_orphans.toml78 // create random path
89 strcpy(path, full_path);
90 path[2*d+2] = '\0';
91 err = lfs_mkdir(&lfs, path);
96 strcpy(path, full_path);
97 path[2*d+2] = '\0';
98 lfs_stat(&lfs, path, &info) => 0;
99 assert(strcmp(info.name, &path[2*d+1]) == 0);
107 // try to delete path in reverse order, ignore if dir is not empty
109 strcpy(path, full_path);
[all …]
Dtest_interspersed.toml11 sprintf(path, "%c", alphas[j]);
12 lfs_file_open(&lfs, &files[j], path,
34 sprintf(path, "%c", alphas[j]);
36 assert(strcmp(info.name, path) == 0);
44 sprintf(path, "%c", alphas[j]);
45 lfs_file_open(&lfs, &files[j], path, LFS_O_RDONLY) => 0;
70 sprintf(path, "%c", alphas[j]);
71 lfs_file_open(&lfs, &file, path,
86 sprintf(path, "%c", alphas[j]);
87 lfs_remove(&lfs, path) => 0;
[all …]
Dtest_alloc.toml19 sprintf(path, "breakfast/%s", names[n]);
20 lfs_file_open(&lfs, &files[n], path,
36 sprintf(path, "breakfast/%s", names[n]);
37 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
61 sprintf(path, "breakfast/%s", names[n]);
62 lfs_file_open(&lfs, &file, path,
75 sprintf(path, "breakfast/%s", names[n]);
76 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
104 sprintf(path, "breakfast/%s", names[n]);
105 lfs_file_open(&lfs, &files[n], path,
[all …]
Dtest_files.toml413 sprintf(path, "file_%03d", i);
414 lfs_file_open(&lfs, &file, path,
423 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
438 sprintf(path, "file_%03d", i);
439 lfs_file_open(&lfs, &file, path,
450 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
469 sprintf(path, "file_%03d", i);
470 err = lfs_file_open(&lfs, &file, path, LFS_O_WRONLY | LFS_O_CREAT);
480 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
Dtest_truncate.toml319 sprintf(path, "hairyhead%d", i);
320 lfs_file_open(&lfs, &file, path,
346 sprintf(path, "hairyhead%d", i);
347 lfs_file_open(&lfs, &file, path, LFS_O_RDWR) => 0;
373 sprintf(path, "hairyhead%d", i);
374 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
/littlefs-3.5.0-3.4.0/scripts/
Dtest.py193 f.write(4*' '+'#line %d "%s"\n' % (self.code_lineno, self.suite.path))
238 cmd = exec + ['./%s.test' % self.suite.path,
244 disk = self.suite.path + '.disk'
269 '-ex', 'b %s:%d' % (self.suite.path, self.code_lineno),
384 def __init__(self, path, classes=[TestCase], defines={}, argument
386 self.name = os.path.basename(path)
390 self.toml = path
391 self.path = args['build_dir'] + '/' + path
393 self.toml = path
394 self.path = path
[all …]
Ddata.py26 for path in paths:
28 cmd = args['nm_tool'] + ['--size-sort', path]
39 results[(path, m.group('func'))] += int(m.group('size'), 16)
66 def openio(path, mode='r'): argument
67 if path == '-':
73 return open(path, mode)
79 for path in args['obj_paths']:
80 if os.path.isdir(path):
81 path = path + '/*.o'
83 for path in glob.glob(path):
[all …]
Dcode.py26 for path in paths:
28 cmd = args['nm_tool'] + ['--size-sort', path]
39 results[(path, m.group('func'))] += int(m.group('size'), 16)
67 def openio(path, mode='r'): argument
68 if path == '-':
74 return open(path, mode)
80 for path in args['obj_paths']:
81 if os.path.isdir(path):
82 path = path + '/*.o'
84 for path in glob.glob(path):
[all …]
Dstructs.py31 for path in paths:
35 cmd = args['objdump_tool'] + ['--dwarf=rawline', path]
62 cmd = args['objdump_tool'] + ['--dwarf=info', path]
118 def openio(path, mode='r'): argument
119 if path == '-':
125 return open(path, mode)
131 for path in args['obj_paths']:
132 if os.path.isdir(path):
133 path = path + '/*.o'
135 for path in glob.glob(path):
[all …]
Dcoverage.py23 for path in paths:
24 with open(path) as f:
69 def openio(path, mode='r'): argument
70 if path == '-':
76 return open(path, mode)
82 for path in args['info_paths']:
83 if os.path.isdir(path):
84 path = path + '/*.gcov'
86 for path in glob.glob(path):
87 paths.append(path)
Dstack.py52 for path in paths:
53 with open(path) as f:
119 def openio(path, mode='r'): argument
120 if path == '-':
126 return open(path, mode)
132 for path in args['ci_paths']:
133 if os.path.isdir(path):
134 path = path + '/*.ci'
136 for path in glob.glob(path):
137 paths.append(path)
Dreadtree.py87 path, dir = pending.pop(0)
96 pending.append(((path + '/' + npath), nmdir))
100 dir[0].path = path.replace('//', '/')
123 print("dir %s" % (json.dumps(dir[0].path)
Dsummary.py61 def openio(path, mode='r'): argument
62 if path == '-':
68 return open(path, mode)
72 for path in args.get('csv_paths', '-'):
74 with openio(path) as f:
Dprefix.py11 import os.path
/littlefs-3.5.0-3.4.0/
Dlfs.h459 int lfs_remove(lfs_t *lfs, const char *path);
476 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
490 lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
501 int lfs_setattr(lfs_t *lfs, const char *path,
511 int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type);
525 const char *path, int flags);
542 const char *path, int flags,
616 int lfs_mkdir(lfs_t *lfs, const char *path);
623 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path);
Dlfs.c1330 const char **path, uint16_t *id) { in lfs_dir_find() argument
1332 const char *name = *path; in lfs_dir_find()
1385 *path = name; in lfs_dir_find()
2401 static int lfs_rawmkdir(lfs_t *lfs, const char *path) { in lfs_rawmkdir() argument
2411 err = lfs_dir_find(lfs, &cwd.m, &path, &id); in lfs_rawmkdir()
2417 lfs_size_t nlen = strlen(path); in lfs_rawmkdir()
2484 {LFS_MKTAG(LFS_TYPE_DIR, id, nlen), path}, in lfs_rawmkdir()
2497 static int lfs_dir_rawopen(lfs_t *lfs, lfs_dir_t *dir, const char *path) { in lfs_dir_rawopen() argument
2498 lfs_stag_t tag = lfs_dir_find(lfs, &dir->m, &path, NULL); in lfs_dir_rawopen()
2842 const char *path, int flags, argument
[all …]
/littlefs-3.5.0-3.4.0/bd/
Dlfs_filebd.c18 int lfs_filebd_createcfg(const struct lfs_config *cfg, const char *path, in lfs_filebd_createcfg() argument
30 path, (void*)bdcfg, bdcfg->erase_value); in lfs_filebd_createcfg()
36 bd->fd = open(path, O_RDWR | O_CREAT | O_BINARY, 0666); in lfs_filebd_createcfg()
38 bd->fd = open(path, O_RDWR | O_CREAT, 0666); in lfs_filebd_createcfg()
51 int lfs_filebd_create(const struct lfs_config *cfg, const char *path) { in lfs_filebd_create() argument
61 path); in lfs_filebd_create()
63 int err = lfs_filebd_createcfg(cfg, path, &defaults); in lfs_filebd_create()
Dlfs_testbd.c14 int lfs_testbd_createcfg(const struct lfs_config *cfg, const char *path, in lfs_testbd_createcfg() argument
28 path, (void*)bdcfg, bdcfg->erase_value, bdcfg->erase_cycles, in lfs_testbd_createcfg()
35 bd->persist = path; in lfs_testbd_createcfg()
57 int err = lfs_filebd_createcfg(cfg, path, &bd->u.file.cfg); in lfs_testbd_createcfg()
71 int lfs_testbd_create(const struct lfs_config *cfg, const char *path) { in lfs_testbd_create() argument
81 path); in lfs_testbd_create()
83 int err = lfs_testbd_createcfg(cfg, path, &defaults); in lfs_testbd_create()
Dlfs_filebd.h43 int lfs_filebd_create(const struct lfs_config *cfg, const char *path);
44 int lfs_filebd_createcfg(const struct lfs_config *cfg, const char *path,
Dlfs_testbd.h100 int lfs_testbd_create(const struct lfs_config *cfg, const char *path);
101 int lfs_testbd_createcfg(const struct lfs_config *cfg, const char *path,

12