1 /*
2  * Copyright (c) 2020 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __TEST_FS_H__
8 #define __TEST_FS_H__
9 
10 #include <zephyr/kernel.h>
11 #include <zephyr/ztest.h>
12 #include <zephyr/fs/fs.h>
13 #include <zephyr/fs/fs_sys.h>
14 
15 #define TEST_FS_MNTP	"/NAND:"
16 #define TEST_FILE	TEST_FS_MNTP"/testfile.txt"
17 #define TEST_FILE_RN	TEST_FS_MNTP"/testfile_renamed.txt"
18 #define TEST_FILE_EX	TEST_FS_MNTP"/testfile_exist.txt"
19 #define TEST_DIR	TEST_FS_MNTP"/testdir"
20 #define TEST_DIR_FILE	TEST_FS_MNTP"/testdir/testfile.txt"
21 
22 /* kenel only reserve two slots for specific file system.
23  * By disable that two file systems, test cases can make
24  * use of that slots to register a file systems for test
25  */
26 #define TEST_FS_1 FS_FATFS
27 #define TEST_FS_2 FS_LITTLEFS
28 
29 extern struct fs_file_system_t temp_fs;
30 
31 struct test_fs_data {
32 	int reserve;
33 };
34 
35 void mock_opendir_result(int ret);
36 #endif
37