Home
last modified time | relevance | path

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

/Zephyr-latest/tests/lib/smf/src/
Dtest_lib_hierarchical_smf.c116 } test_obj; variable
358 test_obj.transition_bits = 0; in ZTEST()
359 test_obj.terminate = NONE; in ZTEST()
360 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
363 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
368 zassert_equal(TEST_VALUE_NUM, test_obj.tv_idx, in ZTEST()
370 zassert_equal(test_obj.transition_bits, test_value[test_obj.tv_idx], in ZTEST()
375 test_obj.transition_bits = 0; in ZTEST()
376 test_obj.terminate = PARENT_ENTRY; in ZTEST()
377 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
[all …]
Dtest_lib_flat_smf.c79 } test_obj; variable
226 test_obj.transition_bits = 0; in ZTEST()
227 test_obj.terminate = NONE; in ZTEST()
228 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
231 if (smf_run_state((struct smf_ctx *)&test_obj)) { in ZTEST()
236 zassert_equal(TEST_VALUE_NUM, test_obj.tv_idx, in ZTEST()
238 zassert_equal(test_obj.transition_bits, test_value[test_obj.tv_idx], in ZTEST()
243 test_obj.transition_bits = 0; in ZTEST()
244 test_obj.terminate = ENTRY; in ZTEST()
245 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[STATE_A]); in ZTEST()
[all …]
Dtest_lib_self_transition_smf.c155 } test_obj; variable
466 test_obj.transition_bits = 0; in ZTEST()
467 test_obj.first_time = FIRST_TIME_BITS; in ZTEST()
468 test_obj.terminate = NONE; in ZTEST()
469 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[PARENT_AB]); in ZTEST()
472 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
477 zassert_equal(TEST_VALUE_NUM, test_obj.tv_idx, "Incorrect test value index"); in ZTEST()
478 zassert_equal(test_obj.transition_bits, test_value[test_obj.tv_idx], in ZTEST()
483 test_obj.transition_bits = 0; in ZTEST()
484 test_obj.first_time = FIRST_TIME_BITS; in ZTEST()
[all …]
Dtest_lib_hierarchical_5_ancestor_smf.c114 } test_obj; variable
428 test_obj.tv_idx = 0; in ZTEST()
429 test_obj.transition_bits = 0; in ZTEST()
430 smf_set_initial((struct smf_ctx *)&test_obj, &test_states[A]); in ZTEST()
433 if (smf_run_state((struct smf_ctx *)&test_obj) < 0) { in ZTEST()
438 zassert_equal(TEST_VALUE_NUM, test_obj.tv_idx, in ZTEST()
440 zassert_equal(test_obj.transition_bits, test_value[test_obj.tv_idx], in ZTEST()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/
Dtest_obj.c30 static struct lwm2m_engine_obj test_obj; variable
95 test_obj.obj_id = TEST_OBJ_ID; in obj_init()
96 test_obj.version_major = 1; in obj_init()
97 test_obj.version_minor = 0; in obj_init()
98 test_obj.is_core = false; in obj_init()
99 test_obj.fields = fields; in obj_init()
100 test_obj.field_count = ARRAY_SIZE(fields); in obj_init()
101 test_obj.max_instance_count = 1; in obj_init()
102 test_obj.create_cb = obj_create; in obj_init()
103 lwm2m_register_obj(&test_obj); in obj_init()
/Zephyr-latest/tests/net/lib/lwm2m/content_link_format/src/
Dmain.c24 static struct lwm2m_engine_obj test_obj; variable
55 test_obj.obj_id = TEST_OBJ_ID; in test_obj_init()
56 test_obj.version_major = 1; in test_obj_init()
57 test_obj.version_minor = 1; in test_obj_init()
58 test_obj.is_core = false; in test_obj_init()
59 test_obj.fields = test_fields; in test_obj_init()
60 test_obj.field_count = ARRAY_SIZE(test_fields); in test_obj_init()
61 test_obj.max_instance_count = 1U; in test_obj_init()
62 test_obj.create_cb = test_obj_create; in test_obj_init()
64 (void)lwm2m_register_obj(&test_obj); in test_obj_init()
/Zephyr-latest/scripts/tests/twister/
Dtest_harness.py570 test_obj = Pytest()
571 test_obj.configure(instance)
574 test_obj.pytest_run(timeout)
576 assert test_obj.status == TwisterStatus.FAIL
718 test_obj = Test()
719 test_obj.configure(instance)
720 test_obj.id = "dummy.test_id"
721 test_obj.ztest = ztest
722 test_obj.status = state
723 test_obj.started_cases = {}
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/
Dmain.c27 static struct lwm2m_engine_obj test_obj; variable
88 test_obj.obj_id = TEST_OBJ_ID; in test_obj_init()
89 test_obj.version_major = 1; in test_obj_init()
90 test_obj.version_minor = 0; in test_obj_init()
91 test_obj.is_core = false; in test_obj_init()
92 test_obj.fields = test_fields; in test_obj_init()
93 test_obj.field_count = ARRAY_SIZE(test_fields); in test_obj_init()
94 test_obj.max_instance_count = 1U; in test_obj_init()
95 test_obj.create_cb = test_obj_create; in test_obj_init()
97 (void)lwm2m_register_obj(&test_obj); in test_obj_init()
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c32 static struct lwm2m_engine_obj test_obj; variable
107 test_obj.obj_id = TEST_OBJ_ID; in test_obj_init()
108 test_obj.version_major = 1; in test_obj_init()
109 test_obj.version_minor = 0; in test_obj_init()
110 test_obj.is_core = false; in test_obj_init()
111 test_obj.fields = test_fields; in test_obj_init()
112 test_obj.field_count = ARRAY_SIZE(test_fields); in test_obj_init()
113 test_obj.max_instance_count = 1U; in test_obj_init()
114 test_obj.create_cb = test_obj_create; in test_obj_init()
116 (void)lwm2m_register_obj(&test_obj); in test_obj_init()