1 /*
2  * Copyright (c) 2016 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include <zephyr/ztest.h>
9 #include <zephyr/fs/fs.h>
10 
11 /* Make sure to match the drive name to ELM FAT Lib volume strings */
12 #define FATFS_MNTP	"/RAM:"
13 #define TEST_FILE	FATFS_MNTP"/testfile.txt"
14 #define TEST_DIR	FATFS_MNTP"/testdir"
15 #define TEST_DIR_FILE	FATFS_MNTP"/testdir/testfile.txt"
16 
17 /* Make sure to match the drive name to ELM FAT Lib volume strings */
18 #define FATFS_MNTP1	"/CF:"
19 #define TEST_FILE1	FATFS_MNTP1"/testfile.txt"
20 #define TEST_DIR1	FATFS_MNTP1"/testdir"
21 #define TEST_DIR_FILE1	FATFS_MNTP1"/testdir/testfile.txt"
22 
23 extern struct fs_file_t filep;
24 extern const char test_str[];
25 
26 int check_file_dir_exists(const char *path);
27 
28 void test_fat_mount(void);
29 void test_fat_file(void);
30 void test_fat_dir(void);
31 void test_fat_fs(void);
32