Home
last modified time | relevance | path

Searched refs:expected_value (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_add_type/src/
Dmain.c56 int expected_value = BT_KEYS_PERIPH_LTK | BT_KEYS_IRK | BT_KEYS_LTK | BT_KEYS_LOCAL_CSRK | in ZTEST() local
65 zassert_true(key_ref.keys == expected_value, in ZTEST()
80 int expected_value = BT_KEYS_PERIPH_LTK | BT_KEYS_IRK | BT_KEYS_LTK | BT_KEYS_LOCAL_CSRK | in ZTEST() local
90 zassert_true(key_ref.keys == expected_value, in ZTEST()
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c1011 int32_t expected_value[] = { 0, INT32_MAX, INT32_MIN }; in ZTEST() local
1015 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
1020 zassert_equal(test_s32, expected_value[i], "Invalid value parsed"); in ZTEST()
1089 int64_t expected_value[] = { 0, INT64_MIN, INT64_MAX }; in ZTEST() local
1093 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
1098 zassert_equal(test_s64, expected_value[i], "Invalid value parsed"); in ZTEST()
1133 const char *expected_value = "test_string"; in ZTEST() local
1141 zassert_mem_equal(test_string, expected_value, strlen(expected_value), in ZTEST()
1261 double expected_value[] = { in ZTEST() local
1267 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c325 int32_t expected_value[] = { 0, INT32_MAX, INT32_MIN }; in ZTEST() local
328 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
334 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
356 int64_t expected_value[] = { 0, INT64_MAX, INT64_MIN }; in ZTEST() local
359 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
365 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
416 double expected_value[] = { in ZTEST() local
421 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
427 zassert_true((value > expected_value[i] - DOUBLE_CMP_EPSILON) && in ZTEST()
428 (value < expected_value[i] + DOUBLE_CMP_EPSILON), in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/
Dmain.c496 int32_t expected_value[] = { 0, INT32_MAX, INT32_MIN }; in ZTEST() local
500 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
505 zassert_equal(test_s32, expected_value[i], "Invalid value parsed"); in ZTEST()
528 int64_t expected_value[] = { 0, INT64_MAX, INT64_MIN }; in ZTEST() local
532 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
537 zassert_equal(test_s64, expected_value[i], "Invalid value parsed"); in ZTEST()
556 const char *expected_value = "test_string"; in ZTEST() local
564 zassert_mem_equal(test_string, expected_value, strlen(expected_value), in ZTEST()
593 double expected_value[] = { in ZTEST() local
599 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c681 int32_t expected_value[] = { 1, -1, INT32_MAX, INT32_MIN }; in ZTEST() local
684 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
689 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
738 int64_t expected_value[] = { 1, -1, INT64_MAX, INT64_MIN }; in ZTEST() local
741 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
746 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
818 double expected_value[] = { in ZTEST() local
823 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
829 zassert_true((value > expected_value[i] - DOUBLE_CMP_EPSILON) && in ZTEST()
830 (value < expected_value[i] + DOUBLE_CMP_EPSILON), in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c719 int32_t expected_value[] = { 0, INT32_MAX, INT32_MIN }; in ZTEST() local
722 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
727 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
790 int64_t expected_value[] = { 0, INT64_MAX, INT64_MIN }; in ZTEST() local
793 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
798 zassert_equal(value, expected_value[i], "Invalid value parsed"); in ZTEST()
920 double expected_value[] = { in ZTEST() local
925 for (i = 0; i < ARRAY_SIZE(expected_value); i++) { in ZTEST()
931 zassert_true((value > expected_value[i] - DOUBLE_CMP_EPSILON) && in ZTEST()
932 (value < expected_value[i] + DOUBLE_CMP_EPSILON), in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c74 uint8_t expected_value = feature_req->features[counter]; in helper_pdu_encode_feature_req() local
76 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_feature_req()
89 uint8_t expected_value = feature_req->features[counter]; in helper_pdu_encode_peripheral_feature_req() local
91 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_peripheral_feature_req()
104 uint8_t expected_value = feature_rsp->features[counter]; in helper_pdu_encode_feature_rsp() local
106 pdu->llctrl.feature_req.features[counter] = expected_value; in helper_pdu_encode_feature_rsp()
577 uint8_t expected_value = feature_req->features[counter]; in helper_pdu_verify_feature_req() local
579 zassert_equal(pdu->llctrl.feature_req.features[counter], expected_value, in helper_pdu_verify_feature_req()
593 uint8_t expected_value = feature_req->features[counter]; in helper_pdu_verify_peripheral_feature_req() local
595 zassert_equal(pdu->llctrl.feature_req.features[counter], expected_value, in helper_pdu_verify_peripheral_feature_req()
[all …]
/Zephyr-latest/tests/cmake/zephyr_get/
DCMakeLists.txt54 function(assert_equal variable expected_value)
61 if(expected_value STREQUAL "IMAGE")
70 set(expected_value "${ARGV${i}}") variable
76 set(expected_value) variable
78 if(NOT DEFINED expected_value)
87 if("${actual_value}" STREQUAL "${expected_value}")
90 message("FAIL: ${info}\n expected '${expected_value}'")
/Zephyr-latest/scripts/tests/twister/
Dtest_testsuite.py784 for expected_value in expected:
785 if expected_value[0] == testcase.name and \
786 expected_value[1] == testcase.freeform: