/Zephyr-Core-3.6.0/tests/lib/sprintf/src/ |
D | main.c | 124 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 128 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 132 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 136 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 140 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 144 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 150 zassert_true((strcmp(buffer, "-inf") == 0), in ZTEST() 154 zassert_true((strcmp(buffer, "-INF") == 0), in ZTEST() 158 zassert_true((strcmp(buffer, "-inf") == 0), in ZTEST() 162 zassert_true((strcmp(buffer, "-INF") == 0), in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/ |
D | sensor_shell_stream.c | 62 if (strcmp("off", argv[2]) == 0) { in cmd_sensor_stream() 66 if (strcmp("on", argv[2]) != 0) { in cmd_sensor_stream() 71 if (strcmp("double_tap", argv[3]) == 0) { in cmd_sensor_stream() 73 } else if (strcmp("data_ready", argv[3]) == 0) { in cmd_sensor_stream() 75 } else if (strcmp("delta", argv[3]) == 0) { in cmd_sensor_stream() 77 } else if (strcmp("freefall", argv[3]) == 0) { in cmd_sensor_stream() 79 } else if (strcmp("motion", argv[3]) == 0) { in cmd_sensor_stream() 81 } else if (strcmp("near_far", argv[3]) == 0) { in cmd_sensor_stream() 83 } else if (strcmp("stationary", argv[3]) == 0) { in cmd_sensor_stream() 85 } else if (strcmp("threshold", argv[3]) == 0) { in cmd_sensor_stream() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/fs/littlefs/src/ |
D | test_util.c | 34 zassert_equal(strcmp(path.path, "/"), 0, "bad root init path"); in ZTEST() 39 zassert_equal(strcmp(path.path, mnt.mnt_point), 0, "bad mnt init path"); in ZTEST() 68 zassert_true(strcmp(path.path, overrun) < 0, in ZTEST() 79 zassert_equal(strcmp(testfs_path_init(&path, &mnt, in ZTEST() 86 zassert_equal(strcmp(testfs_path_init(&path, &mnt, in ZTEST() 97 zassert_equal(strcmp(testfs_path_extend(reset_path(), in ZTEST() 103 zassert_equal(strcmp(testfs_path_extend(reset_path(), in ZTEST() 110 zassert_equal(strcmp(testfs_path_extend(reset_path(), in ZTEST() 121 zassert_equal(strcmp(testfs_path_extend(reset_path(), in ZTEST() 130 zassert_equal(strcmp(testfs_path_extend(reset_path(), in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/bluetooth/shell/ |
D | ll.c | 39 if (!strcmp(str_type, "random")) { in cmd_ll_addr_read() 41 } else if (!strcmp(str_type, "public")) { in cmd_ll_addr_read() 163 if (!strcmp(argv[1], "on")) { in cmd_advx() 166 } else if (!strcmp(argv[1], "hdcd")) { in cmd_advx() 172 } else if (!strcmp(argv[1], "ldcd")) { in cmd_advx() 175 } else if (!strcmp(argv[1], "off")) { in cmd_advx() 185 if (!strcmp(argv[2], "coded")) { in cmd_advx() 187 } else if (!strcmp(argv[2], "anon")) { in cmd_advx() 189 } else if (!strcmp(argv[2], "txp")) { in cmd_advx() 191 } else if (!strcmp(argv[2], "ad")) { in cmd_advx() [all …]
|
D | bt.c | 1088 if (!strcmp(arg, "no-settings-load")) { in cmd_init() 1090 } else if (!strcmp(arg, "sync")) { in cmd_init() 1436 if (!strcmp(arg, "dups")) { in cmd_scan() 1438 } else if (!strcmp(arg, "nodups")) { in cmd_scan() 1440 } else if (!strcmp(arg, "fal")) { in cmd_scan() 1442 } else if (!strcmp(arg, "coded")) { in cmd_scan() 1444 } else if (!strcmp(arg, "no-1m")) { in cmd_scan() 1446 } else if (!strcmp(arg, "timeout")) { in cmd_scan() 1460 if (!strcmp(action, "on")) { in cmd_scan() 1462 } else if (!strcmp(action, "off")) { in cmd_scan() [all …]
|
/Zephyr-Core-3.6.0/subsys/bluetooth/host/ |
D | addr.c | 97 if (!strcmp(type, "public") || !strcmp(type, "(public)")) { in bt_addr_le_from_str() 99 } else if (!strcmp(type, "random") || !strcmp(type, "(random)")) { in bt_addr_le_from_str() 101 } else if (!strcmp(type, "public-id") || !strcmp(type, "(public-id)")) { in bt_addr_le_from_str() 103 } else if (!strcmp(type, "random-id") || !strcmp(type, "(random-id)")) { in bt_addr_le_from_str()
|
/Zephyr-Core-3.6.0/tests/net/socket/getnameinfo/src/ |
D | main.c | 30 zassert_equal(strcmp(host, "0.0.0.0"), 0, ""); in ZTEST_USER() 31 zassert_equal(strcmp(serv, "0"), 0, ""); in ZTEST_USER() 41 zassert_equal(strcmp(host, "127.0.0.1"), 0, ""); in ZTEST_USER() 42 zassert_equal(strcmp(serv, "1234"), 0, ""); in ZTEST_USER() 60 zassert_equal(strcmp(host, "::"), 0, ""); in ZTEST_USER() 61 zassert_equal(strcmp(serv, "0"), 0, ""); in ZTEST_USER() 73 zassert_equal(strcmp(host, "ff55::11"), 0, ""); in ZTEST_USER() 74 zassert_equal(strcmp(serv, "4321"), 0, ""); in ZTEST_USER()
|
/Zephyr-Core-3.6.0/tests/kernel/threads/thread_apis/src/ |
D | test_kthread_for_each.c | 231 zassert_true(strcmp(str, "") == 0); in ZTEST() 236 zassert_true(strcmp(str, "") == 0); in ZTEST() 239 zassert_true(strcmp(str, "") == 0); in ZTEST() 242 zassert_true(strcmp(str, "dummy") == 0); in ZTEST() 246 zassert_true(strcmp(str, "pending") == 0); in ZTEST() 250 zassert_true(strcmp(str, "prestart") == 0); in ZTEST() 254 zassert_true(strcmp(str, "dead") == 0); in ZTEST() 258 zassert_true(strcmp(str, "suspended") == 0); in ZTEST() 262 zassert_true(strcmp(str, "aborting") == 0); in ZTEST() 266 zassert_true(strcmp(str, "queued") == 0); in ZTEST() [all …]
|
D | test_threads_suspend_resume.c | 168 zassert_true(strcmp(str, "queued") == 0); in ZTEST() 171 zassert_true(strcmp(str, "queued") == 0); in ZTEST() 176 zassert_true(strcmp(str, "suspended") == 0); in ZTEST() 181 zassert_true(strcmp(str, "queued") == 0); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/lib/c_lib/strerror/src/ |
D | main.c | 25 zassert_equal(0, strcmp(expected, actual), in ZTEST() 36 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 39 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 49 zassert_equal(0, strcmp(expected, actual), in ZTEST()
|
/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/ |
D | lwm2m_shell.c | 173 if (strcmp(dtype, "-x") == 0) { in cmd_read() 183 } else if (strcmp(dtype, "-s") == 0) { in cmd_read() 193 } else if (strcmp(dtype, "-s8") == 0) { in cmd_read() 201 } else if (strcmp(dtype, "-s16") == 0) { in cmd_read() 209 } else if (strcmp(dtype, "-s32") == 0) { in cmd_read() 217 } else if (strcmp(dtype, "-s64") == 0) { in cmd_read() 225 } else if (strcmp(dtype, "-u8") == 0) { in cmd_read() 233 } else if (strcmp(dtype, "-u16") == 0) { in cmd_read() 241 } else if (strcmp(dtype, "-u32") == 0) { in cmd_read() 249 } else if (strcmp(dtype, "-f") == 0) { in cmd_read() [all …]
|
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/ |
D | csip_set_member.c | 79 if (strcmp(arg, "size") == 0) { in cm_csip_set_member_register() 104 } else if (strcmp(arg, "rank") == 0) { in cm_csip_set_member_register() 128 } else if (strcmp(arg, "not-lockable") == 0) { in cm_csip_set_member_register() 130 } else if (strcmp(arg, "sirk") == 0) { in cm_csip_set_member_register() 189 if (strcmp(argv[1], "force") == 0) { in cm_csip_set_member_release() 212 if (strcmp(argv[1], "accept") == 0) { in cm_csip_set_member_set_sirk_rsp() 214 } else if (strcmp(argv[1], "accept_enc") == 0) { in cm_csip_set_member_set_sirk_rsp() 216 } else if (strcmp(argv[1], "reject") == 0) { in cm_csip_set_member_set_sirk_rsp() 218 } else if (strcmp(argv[1], "oob") == 0) { in cm_csip_set_member_set_sirk_rsp()
|
D | has.c | 90 if (strcmp(arg, "binaural") == 0) { in cmd_features_set() 92 } else if (strcmp(arg, "monaural") == 0) { in cmd_features_set() 94 } else if (strcmp(arg, "banded") == 0) { in cmd_features_set() 96 } else if (strcmp(arg, "sync") == 0) { in cmd_features_set() 98 } else if (strcmp(arg, "independent") == 0) { in cmd_features_set() 127 if (strcmp(arg, "binaural") == 0) { in cmd_has_register() 129 } else if (strcmp(arg, "monaural") == 0) { in cmd_has_register() 131 } else if (strcmp(arg, "banded") == 0) { in cmd_has_register() 133 } else if (strcmp(arg, "sync") == 0) { in cmd_has_register() 135 } else if (strcmp(arg, "independent") == 0) { in cmd_has_register()
|
D | cap_acceptor.c | 93 if (strcmp(arg, "size") == 0) { in cmd_cap_acceptor_init() 118 } else if (strcmp(arg, "rank") == 0) { in cmd_cap_acceptor_init() 142 } else if (strcmp(arg, "not-lockable") == 0) { in cmd_cap_acceptor_init() 144 } else if (strcmp(arg, "sirk") == 0) { in cmd_cap_acceptor_init() 209 if (strcmp(argv[1], "force") == 0) { in cmd_cap_acceptor_release() 234 if (strcmp(argv[1], "accept") == 0) { in cmd_cap_acceptor_set_sirk_rsp() 236 } else if (strcmp(argv[1], "accept_enc") == 0) { in cmd_cap_acceptor_set_sirk_rsp() 238 } else if (strcmp(argv[1], "reject") == 0) { in cmd_cap_acceptor_set_sirk_rsp() 240 } else if (strcmp(argv[1], "oob") == 0) { in cmd_cap_acceptor_set_sirk_rsp()
|
D | tbs_client.c | 53 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_set_signal_strength_interval() 109 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_hold() 163 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_retrieve() 218 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_accept() 274 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_join() 333 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_terminate() 387 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_originate() 428 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_bearer_provider_name() 469 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_bearer_uci() 509 if (strcmp(argv[1], "gtbs") == 0) { in cmd_tbs_client_read_technology() [all …]
|
/Zephyr-Core-3.6.0/modules/lvgl/ |
D | lvgl_shell.c | 43 if (strcmp(str, "pointer") == 0) { in lvgl_monkey_indev_from_string() 45 } else if (strcmp(str, "keypad") == 0) { in lvgl_monkey_indev_from_string() 47 } else if (strcmp(str, "button") == 0) { in lvgl_monkey_indev_from_string() 49 } else if (strcmp(str, "encoder") == 0) { in lvgl_monkey_indev_from_string() 125 if (strcmp(argv[2], "active") == 0) { in cmd_lvgl_monkey_set() 127 } else if (strcmp(argv[2], "inactive") == 0) { in cmd_lvgl_monkey_set() 156 if (strcmp(argv[1], "-c") == 0) { in cmd_lvgl_stats_memory()
|
/Zephyr-Core-3.6.0/tests/net/lib/coap_server/common/src/ |
D | main.c | 77 zassert_ok(strcmp(service_A.host, "a.service.com")); in ZTEST() 81 zassert_ok(strcmp(service_B.host, "b.service.com")); in ZTEST() 85 zassert_ok(strcmp(service_C.host, "192.168.1.1")); in ZTEST() 278 zassert_ok(strcmp(res->path[0], "res0")); in ZTEST() 282 zassert_ok(strcmp(res->path[0], "res1")); in ZTEST() 293 zassert_ok(strcmp(res->path[0], "res2")); in ZTEST() 294 zassert_ok(strcmp(res->path[1], "sub")); in ZTEST() 298 zassert_ok(strcmp(res->path[0], "res3")); in ZTEST() 299 zassert_ok(strcmp(res->path[1], "+")); in ZTEST() 310 zassert_ok(strcmp(res->path[0], "res4")); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_output/src/ |
D | log_output_test.c | 60 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 76 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 91 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 108 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 127 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 148 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 185 zassert_equal(strcmp(exp_strs[i], mock_buffer), 0); in ZTEST() 217 zassert_equal(strcmp(exp_strs[i], mock_buffer), 0); in ZTEST() 247 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST() 265 zassert_equal(strcmp(exp_str, mock_buffer), 0); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/subsys/pm/device_driver_init/src/ |
D | main.c | 36 zassert_equal(strcmp("", pm_device_state_str(state)), 0, "Invalid device state"); in ZTEST() 42 zassert_equal(strcmp("active", pm_device_state_str(state)), 0, "Invalid device state"); in ZTEST() 48 zassert_equal(strcmp("suspended", pm_device_state_str(state)), 0, "Invalid device state"); in ZTEST() 54 zassert_equal(strcmp("off", pm_device_state_str(state)), 0, "Invalid device state"); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/lib/devicetree/api_ext/src/ |
D | main.c | 20 zassert_true(!strcmp(LINKER_DT_NODE_REGION_NAME(TEST_SRAM1), "SRAM_REGION"), ""); in ZTEST() 21 zassert_true(!strcmp(LINKER_DT_NODE_REGION_NAME(TEST_SRAM2), "SRAM_REGION_2"), ""); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/net/lib/http_server/common/src/ |
D | main.c | 45 zassert_ok(strcmp(service_A.host, "a.service.com")); in ZTEST() 52 zassert_ok(strcmp(service_B.host, "b.service.com")); in ZTEST() 59 zassert_ok(strcmp(service_C.host, "192.168.1.1")); in ZTEST() 222 zassert_ok(strcmp(res->resource, "/")); in ZTEST() 225 zassert_ok(strcmp(res->resource, "/index.html")); in ZTEST() 236 zassert_ok(strcmp(res->resource, "/foo.htm")); in ZTEST() 239 zassert_ok(strcmp(res->resource, "/bar/baz.php")); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/subsys/shell/shell/src/ |
D | main.c | 212 if (!strcmp("argument_1", argv[i])) { in cmd_wildcard() 216 if (!strcmp("argument_2", argv[i])) { in cmd_wildcard() 220 if (!strcmp("dummy", argv[i])) { in cmd_wildcard() 242 if (!strcmp(dynamic_cmd_buffer[0], argv[i])) { in cmd_dynamic() 246 if (!strcmp(dynamic_cmd_buffer[1], argv[i])) { in cmd_dynamic() 353 if (strcmp(argv[0], STRINGIFY(CMD_MAND_1_OPT_RAW_NAME))) { in cmd_mand_1_opt_raw_handler() 356 if (strcmp(argv[1], RAW_ARG)) { in cmd_mand_1_opt_raw_handler() 386 if (strcmp(argv[0], STRINGIFY(CMD_MAND_2_OPT_RAW_NAME))) { in cmd_mand_2_opt_raw_handler() 390 if (argc >= 2 && strcmp(argv[1], "mandatory")) { in cmd_mand_2_opt_raw_handler() 394 if (argc == 3 && strcmp(argv[2], RAW_ARG)) { in cmd_mand_2_opt_raw_handler()
|
/Zephyr-Core-3.6.0/tests/lib/c_lib/common/src/ |
D | main.c | 232 zassert_true((strcmp(buffer, "fffff") < 0), "strcmp less ..."); in ZTEST() 233 zassert_true((strcmp(buffer, "eeeee") == 0), "strcmp equal ..."); in ZTEST() 234 zassert_true((strcmp(buffer, "ddddd") > 0), "strcmp greater ..."); in ZTEST() 280 zassert_true((strcmp(buffer, "10 chars!\0") == 0), "strcpy"); in ZTEST() 470 zassert_equal(strcmp(buf, exp_alnum), 0, "isalnum error"); in ZTEST() 479 zassert_equal(strcmp(buf, exp_alpha), 0, "isalpha error"); in ZTEST() 488 zassert_equal(strcmp(buf, exp_digit), 0, "isdigit error"); in ZTEST() 497 zassert_equal(strcmp(buf, exp_graph), 0, "isgraph error"); in ZTEST() 506 zassert_equal(strcmp(buf, exp_print), 0, "isprint error"); in ZTEST() 515 zassert_equal(strcmp(buf, exp_upper), 0, "isupper error"); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/lib/json/src/ |
D | main.c | 248 zassert_true(!strcmp(ts.some_string, "zephyr 123\\uABCD456"), in ZTEST() 256 zassert_true(!strcmp(ts.some_nested_struct.nested_string, in ZTEST() 277 zassert_true(!strcmp(ts.xnother_nexx.nested_string, in ZTEST() 286 zassert_true(!strcmp(ts.nested_obj_array[0].nested_string, "true"), in ZTEST() 292 zassert_true(!strcmp(ts.nested_obj_array[1].nested_string, "false"), in ZTEST() 318 zassert_true(!strcmp(encoded, buffer), "Integer limits not encoded correctly"); in ZTEST() 344 zassert_true(!strcmp(buffer, encoded), in ZTEST() 367 zassert_true(!strcmp(obj_array_array_ts.objects_array[0].objects.name, in ZTEST() 372 zassert_true(!strcmp(obj_array_array_ts.objects_array[1].objects.name, in ZTEST() 377 zassert_true(!strcmp(obj_array_array_ts.objects_array[2].objects.name, in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/testsuite/ztest/src/ |
D | ztest_shell.c | 90 found = !strcmp(suite_arg, suite_name); in z_ztest_testargs_contains() 92 found &= !strcmp(test_arg, "*") || in z_ztest_testargs_contains() 93 !strcmp(test_arg, test_name); in z_ztest_testargs_contains()
|