Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 7 of 7) sorted by relevance

/tests/subsys/fs/multi-fs/src/
A Dtest_common_file.c12 int test_file_open(struct fs_file_t *filep, const char *file_path) in test_file_open() argument
18 if (check_file_dir_exists(file_path)) { in test_file_open()
19 TC_PRINT("Opening existing file %s\n", file_path); in test_file_open()
21 TC_PRINT("Creating new file %s\n", file_path); in test_file_open()
25 res = fs_open(filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_file_open()
31 TC_PRINT("Opened file %s\n", file_path); in test_file_open()
128 int test_file_delete(const char *file_path) in test_file_delete() argument
136 res = fs_unlink(file_path); in test_file_delete()
143 if (check_file_dir_exists(file_path)) { in test_file_delete()
144 TC_PRINT("Failed deleting %s\n", file_path); in test_file_delete()
[all …]
A Dtest_common_dir.c24 char file_path[PATH_MAX] = { 0 }; in test_mkdir() local
27 res = sprintf(file_path, "%s/%s", dir_path, file); in test_mkdir()
28 __ASSERT_NO_MSG(res < sizeof(file_path)); in test_mkdir()
47 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir()
53 TC_PRINT("Testing write to file %s\n", file_path); in test_mkdir()
133 char file_path[PATH_MAX] = { 0 }; in test_rmdir() local
143 sprintf(file_path, "%s/%s", dir_path, entry.name); in test_rmdir()
144 __ASSERT_NO_MSG(res < sizeof(file_path)); in test_rmdir()
145 TC_PRINT("Removing %s\n", file_path); in test_rmdir()
147 res = fs_unlink(file_path); in test_rmdir()
/tests/subsys/fs/ext2/src/
A Dtestfs_ext_specific.c49 ret = fs_open(&file, file_path, FS_O_RDWR | FS_O_CREATE); in write_to_file()
61 ret = fs_stat(file_path, &entry); in write_to_file()
68 ret = fs_open(&file, file_path, FS_O_READ); in write_to_file()
90 ret = fs_open(&file, file_path, FS_O_RDWR); in truncate_file()
96 ret = fs_stat(file_path, &entry); in truncate_file()
117 static const char *file_path = "/sml/file"; in writing_test() local
139 write_to_file(file_path, bytes_to_write); in writing_test()
145 truncate_file(file_path, new_size); in writing_test()
157 static const char *file_path = "/sml/file"; in ZTEST() local
175 write_to_file(file_path, bytes_to_write); in ZTEST()
[all …]
/tests/subsys/fs/fat_fs_api/src/
A Dtest_fat_dir.c106 char file_path[80 + MAX_FILE_NAME]; in test_rmdir() local
133 sprintf(file_path, "%s/%s", TEST_DIR, entry.name); in test_rmdir()
134 TC_PRINT("Removing %s\n", file_path); in test_rmdir()
136 res = fs_unlink(file_path); in test_rmdir()
/tests/subsys/fs/fat_fs_dual_drive/src/
A Dtest_fat_dir.c111 char file_path[80]; in test_rmdir() local
138 sprintf(file_path, "%s/%s", dir, entry.name); in test_rmdir()
139 TC_PRINT("Removing %s\n", file_path); in test_rmdir()
141 res = fs_unlink(file_path); in test_rmdir()
/tests/subsys/fs/common/
A Dtest_fs_open_flags.c29 char *file_path; member
57 TC_PRINT("# %d: OPEN %s with flags %x\n", line, ts->file_path, flags); in ZOPEN()
58 ZEQ(fs_open(&ts->file, ts->file_path, flags), expected); in ZOPEN()
64 TC_PRINT("# %d: CLOSE %s\n", line, ts->file_path); in ZCLOSE()
71 TC_PRINT("# %d: WRITE %s\n", line, ts->file_path); in ZWRITE()
78 TC_PRINT("# %d: READ %s\n", line, ts->file_path); in ZREAD()
87 TC_PRINT("# %d: UNLINK %s\n", line, ts->file_path); in ZUNLINK()
88 ret = fs_unlink(ts->file_path); in ZUNLINK()
/tests/net/lib/http_server/core/src/
A Dmain.c2621 char file_path[PATH_MAX] = { 0 }; in test_mkdir() local
2624 res = sprintf(file_path, "%s/%s", dir_path, file); in test_mkdir()
2625 __ASSERT_NO_MSG(res < sizeof(file_path)); in test_mkdir()
2641 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir()
2647 TC_PRINT("Testing write to file %s\n", file_path); in test_mkdir()

Completed in 22 milliseconds