Home
last modified time | relevance | path

Searched refs:test_str (Results 1 – 21 of 21) sorted by relevance

/Zephyr-Core-3.6.0/tests/subsys/fs/multi-fs/src/
Dtest_common_file.c36 int test_file_write(struct fs_file_t *filep, const char *test_str) in test_file_write() argument
51 TC_PRINT("Data written:\"%s\"\n\n", test_str); in test_file_write()
54 brw = fs_write(filep, (char *)test_str, strlen(test_str)); in test_file_write()
61 if (brw < strlen(test_str)) { in test_file_write()
73 int test_file_read(struct fs_file_t *filep, const char *test_str) in test_file_read() argument
78 size_t sz = strlen(test_str); in test_file_read()
101 if (strcmp(test_str, read_buff)) { in test_file_read()
Dtest_fat_file.c13 static const char *test_str = "Hello world FAT"; variable
25 zassert_true(test_file_write(&test_file, test_str) == TC_PASS, in test_fat_write()
31 zassert_true(test_file_read(&test_file, test_str) == TC_PASS); in test_fat_read()
Dtest_littlefs_file.c13 static const char *test_str = "Hello world LITTLEFS"; variable
25 zassert_true(test_file_write(&test_file, test_str) == TC_PASS, in test_littlefs_write()
31 zassert_true(test_file_read(&test_file, test_str) == TC_PASS); in test_littlefs_read()
Dtest_common.h16 int test_file_read(struct fs_file_t *filep, const char *test_str);
/Zephyr-Core-3.6.0/tests/lib/cbprintf_package/src/
Dmain.c161 static const char *test_str = "test %d %s"; in ZTEST() local
166 len0 = cbprintf_package(NULL, 0, 0, test_str, 100, test_str1); in ZTEST()
174 test_str, 100, test_str1); in ZTEST()
179 test_str, 100, test_str1); in ZTEST()
193 test_str, 100, test_str1); in ZTEST()
197 test_str, 100, test_str1); in ZTEST()
202 test_str, 100, test_str1); in ZTEST()
207 test_str, 100, test_str1); in ZTEST()
212 test_str, 100, test_str1); in ZTEST()
228 zassert_equal(addr, test_str); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/posix/fs/src/
Dtest_fs_file.c12 const char test_str[] = "hello world!"; variable
44 brw = write(file, (char *)test_str, strlen(test_str)); in test_file_write()
52 if (brw < strlen(test_str)) { in test_file_write()
68 size_t sz = strlen(test_str); in test_file_read()
88 if (strcmp(test_str, read_buff)) { in test_file_read()
117 if (strcmp(test_str + 2, read_buff)) { in test_file_read()
Dtest_fs.h15 extern const char test_str[];
/Zephyr-Core-3.6.0/arch/posix/include/
Dposix_arch_internal.h18 static inline void pc_safe_call(int test, const char *test_str) in pc_safe_call() argument
23 test_str); in pc_safe_call()
/Zephyr-Core-3.6.0/scripts/native_simulator/common/src/
Dnsi_safe_call.h23 static inline void nsi_safe_call(int test, const char *test_str) in nsi_safe_call() argument
28 test_str); in nsi_safe_call()
/Zephyr-Core-3.6.0/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_file.c54 TC_PRINT("Data written:\"%s\"\n\n", test_str); in test_file_write()
57 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in test_file_write()
64 if (brw < strlen(test_str)) { in test_file_write()
97 size_t sz = strlen(test_str); in test_file_read()
120 if (strcmp(test_str, read_buff)) { in test_file_read()
Dcommon.c13 const char test_str[] = "hello world!"; variable
Dtest_fat_file_reentrant.c153 brw = fs_write(&filep2, (char *)test_str, strlen(test_str)); in tfile2_access()
160 if (brw < strlen(test_str)) { in tfile2_access()
Dtest_fat.h37 extern const char test_str[];
/Zephyr-Core-3.6.0/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat_file.c55 TC_PRINT("Data written:\"%s\"\n\n", test_str); in test_file_write()
58 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in test_file_write()
65 if (brw < strlen(test_str)) { in test_file_write()
98 size_t sz = strlen(test_str); in test_file_read()
121 if (strcmp(test_str, read_buff)) { in test_file_read()
Dcommon.c10 const char test_str[] = "hello world!"; variable
Dtest_fat.h24 extern const char test_str[];
/Zephyr-Core-3.6.0/tests/subsys/logging/log_api/src/
Dmock_frontend.c72 struct test_str { struct
79 struct test_str *s = ctx; in out() argument
124 struct test_str s = { .str = str }; in log_frontend_msg()
Dmock_backend.c112 struct test_str { struct
119 struct test_str *s = ctx; in out() argument
178 struct test_str s = { .str = str }; in process()
/Zephyr-Core-3.6.0/tests/subsys/fs/fs_api/src/
Dtest_fs_dir_file.c92 static const char test_str[] = "hello world!"; variable
541 brw = fs_write(&err_filep, (char *)test_str, strlen(test_str)); in _test_file_write()
548 brw = fs_write(&err_filep, (char *)test_str, strlen(test_str)); in _test_file_write()
561 brw = fs_write(&filep, NULL, strlen(test_str)); in _test_file_write()
566 TC_PRINT("Data written:\"%s\"\n\n", test_str); in _test_file_write()
568 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in _test_file_write()
575 if (brw < strlen(test_str)) { in _test_file_write()
622 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in _test_file_sync()
623 if (brw < strlen(test_str)) { in _test_file_sync()
679 size_t sz = strlen(test_str); in test_file_read()
[all …]
/Zephyr-Core-3.6.0/tests/unit/cbprintf/
Dmain.c1193 static const char *test_str = "test %d %s"; in ZTEST() local
1199 test_str, 100, test_str1); in ZTEST()
1202 test_str, 100, test_str1); in ZTEST()
1213 test_str, 100, test_str1); in ZTEST()
1216 test_str, 100, test_str1); in ZTEST()
1230 zassert_equal(addr, test_str); in ZTEST()
1260 char test_str[] = "test %d %s"; in ZTEST() local
1270 snprintf(exp_str0, sizeof(exp_str0), test_str, 100, test_str1); in ZTEST()
1274 test_str, 100, test_str1); in ZTEST()
1281 test_str, 100, test_str1); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/subsys/logging/log_stress/src/
Dmain.c128 char test_str[] = "test string"; in context_handler() local
129 LOG_INF("%u %s %s", i, "test", test_str); in context_handler()