Home
last modified time | relevance | path

Searched full:assert (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/Zephyr-Core-3.4.0/scripts/tests/twister/
Dtest_harness.py54 assert len(gtest.detected_suite_names) == 0
55 assert gtest.state is None
68 assert gtest.state is None
69 assert len(gtest.detected_suite_names) == 1
70 assert gtest.detected_suite_names[0] == "suite_name"
71 assert gtest.instance.get_case_by_name("id.suite_name.test_name") is not None
72 assert (
90 assert gtest.state is None
91 assert len(gtest.detected_suite_names) == 1
92 assert gtest.detected_suite_names[0] == "suite_name"
[all …]
Dtest_twister.py38 assert data
50 assert str(exception.value) == "Schema validation failed"
61 assert scenario
65 assert scenario["extra_args"] == ["UNRELATED1=abc", "UNRELATED2=xyz"]
68 assert ";".join(scenario["extra_conf_files"]) == \
72 assert ";".join(scenario["extra_dtc_overlay_files"]) == \
76 assert scenario["extra_overlay_confs"] == \
80 assert scenario["extra_configs"] == ["CONFIG_FOO=y"]
92 assert len(exception.value.args) == 1
93 assert exception.value.args[0] == str(filename) + ": " + "Dummy message."
Dtest_testplan_class.py43 assert sorted(testsuite_list) == sorted(expected_testsuites)
45 # Test 2 : Assert Testcase name is expected & all testsuites values are testcase class objects
47 assert suite.name == tests_rel_dir + 'test_a/test_a.check_1'
48 assert all(isinstance(n, TestSuite) for n in class_testplan.testsuites.values())
60 assert sorted(plan.default_platforms) == sorted(['demo_board_1', 'demo_board_3'])
63 assert sorted(plan.default_platforms) != sorted(['demo_board_1'])
81 assert sorted(plan.get_all_tests()) == sorted(expected_tests)
88 assert isinstance(platform, Platform)
89 assert platform.name == "demo_board_1"
173 assert d.reason == expected_discards
[all …]
/Zephyr-Core-3.4.0/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py57 assert caplog.record_tuples == [('devicetree.edtlib', WARNING, warning_message)
67 assert node.interrupts == [
76 assert node.interrupts == [
87 assert node.interrupts == [
94 assert node.interrupts == [
101 assert node.interrupts == [
111 assert node.ranges == [
118 assert node.ranges == [
123 assert node.ranges == [
127 assert edt.get_node("/ranges-zero-cells/node").ranges == []
[all …]
Dtest_dtlib.py53 assert actual == expected, f'unexpected round-trip on {dts}'
109 assert sum([bool(err), bool(err_endswith), bool(err_matches)]) == 1
116 assert actual_err == err
118 assert actual_err.endswith(err_endswith)
120 assert re.fullmatch(err_matches, actual_err), \
467 assert actual == expected, f"label '{label}' mapped to wrong property"
512 assert (actual_prop, actual_offset) == \
557 assert node.unit_addr == expected, \
822 assert actual_name == expected_name, \
990 assert str(dt) == """
[all …]
/Zephyr-Core-3.4.0/scripts/pylib/pytest-twister-harness/tests/device/
Dsimulator_adapter_test.py32 assert isinstance(device.command, list)
33 assert device.command == [str(resources.joinpath('zephyr', 'zephyr.exe'))]
50 assert device._process_ended_with_timeout is False
51 assert 'Readability counts.' in lines
52 assert os.path.isfile(device.handler_log_file.filename)
55 assert file_lines[-2:] == lines[-2:]
68 assert device._process_ended_with_timeout is True
69 assert device._exc is None
71 assert 'End of script' not in lines, 'Script has not been terminated before end'
79 assert device._exc is not None
[all …]
Dhardware_adapter_test.py32 assert isinstance(device.command, list)
33assert device.command == ['west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', '…
41 assert isinstance(device.command, list)
42 assert device.command == [
59 assert isinstance(device.command, list)
60 assert device.command == [
71 assert isinstance(device.command, list)
72 assert device.command == [
84 assert isinstance(device.command, list)
85 assert device.command == [
[all …]
Dqemu_adapter_test.py34 assert adapter.command == ['/usr/bin/west', 'build', '-d', 'build_dir', '-t', 'run']
41 assert adapter.command == []
56 assert device._exc is not None
57 assert isinstance(device._exc, TwisterHarnessException)
78 assert 'Readability counts.' in lines
79 assert os.path.isfile(device.handler_log_file.filename)
82 assert file_lines[-2:] == lines[-2:]
90 assert device._process_ended_with_timeout is True
96 assert isinstance(device.handler_log_file, HandlerLogFile)
97 assert isinstance(device.device_log_file, NullLogFile)
[all …]
/Zephyr-Core-3.4.0/scripts/pylib/pytest-twister-harness/tests/log_file/
Dlog_file_test.py22 assert sample_log_file.filename.endswith('uninitialized.log') # type: ignore[union-attr]
28 assert os.path.exists(path=sample_log_file.filename)
30 assert file.readline() == 'str message'
36 assert os.path.exists(path=sample_log_file.filename)
38 assert file.readline() == 'bytes message'
44 assert not os.path.exists(path=sample_log_file.filename)
49 assert log_file.filename == os.devnull
54 assert log_file.filename == os.path.join(tmpdir, 'uninitialized.log')
/Zephyr-Core-3.4.0/subsys/testsuite/ztest/include/zephyr/
Dztest_error_hook.h48 * @brief Set the flag that treat assert fail happened as expected
50 * @details This is used for negative test cases which triggers a assert
52 * assert fail happened. For normal test case, set it false make it back
55 * @param valid flag indicate assert is expected
59 /* @brief A hook after assert fault handler
62 * order to deal with some special case when catching the expected assert
66 * you want to do after assert handler.
68 * By default, it will abort the thread which assert failed.
/Zephyr-Core-3.4.0/dts/bindings/pwm/
Dxlnx,xps-timer-1.00.a-pwm.yaml8 xlnx,gen0-assert:
11 xlnx,gen1-assert:
14 xlnx,trig0-assert:
17 xlnx,trig1-assert:
/Zephyr-Core-3.4.0/scripts/tests/build/
Dtest_subfolder_list.py32 """Assert that out file has names of directories"""
35 assert dir_name in dir_names
43 assert dir_names == iut_dir_names
74 assert sorted(expect_links) == sorted(links)
91 assert st_info == st_info2
99 assert st_info != st_info2
111 assert os.path.exists(trigger_file)
124 assert (time_now - st_info.st_atime) <= time_since_touch
125 assert (time_now - st_info.st_mtime) <= time_since_touch
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/security/bond_overwrite_denied/src/
Dbs_bt_utils.c51 ASSERT((!g_conn || (conn == g_conn)), "Unexpected new connection."); in connected()
76 ASSERT(conn, "Test error: No g_conn!\n"); in clear_g_conn()
104 ASSERT(!err, "bt_enable failed.\n"); in bs_bt_utils_setup()
106 ASSERT(!err, "bt_conn_auth_info_cb_register failed.\n"); in bs_bt_utils_setup()
128 ASSERT(!err, "Err bt_le_scan_stop %d", err); in scan_connect_to_first_result__device_found()
131 ASSERT(!err, "Err bt_conn_le_create %d", err); in scan_connect_to_first_result__device_found()
139 ASSERT(!err, "Err bt_le_scan_start %d", err); in scan_connect_to_first_result()
147 ASSERT(!err, "Err bt_conn_disconnect %d", err); in disconnect()
155 ASSERT(!err, "Err bt_conn_set_security %d", err); in set_security()
175 ASSERT(err == 0, "Advertising failed to start (err %d)\n", err); in advertise_connectable()
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/security/bond_overwrite_allowed/src/
Dbs_bt_utils.c51 ASSERT((!g_conn || (conn == g_conn)), "Unexpected new connection."); in connected()
76 ASSERT(conn, "Test error: No g_conn!\n"); in clear_g_conn()
104 ASSERT(!err, "bt_enable failed.\n"); in bs_bt_utils_setup()
106 ASSERT(!err, "bt_conn_auth_info_cb_register failed.\n"); in bs_bt_utils_setup()
128 ASSERT(!err, "Err bt_le_scan_stop %d", err); in scan_connect_to_first_result__device_found()
131 ASSERT(!err, "Err bt_conn_le_create %d", err); in scan_connect_to_first_result__device_found()
139 ASSERT(!err, "Err bt_le_scan_start %d", err); in scan_connect_to_first_result()
147 ASSERT(!err, "Err bt_conn_disconnect %d", err); in disconnect()
155 ASSERT(!err, "Err bt_conn_set_security %d", err); in set_security()
175 ASSERT(err == 0, "Advertising failed to start (err %d)\n", err); in advertise_connectable()
/Zephyr-Core-3.4.0/lib/libc/minimal/include/
Dassert.h22 #ifndef assert
23 #define assert(test) __ASSERT_NO_MSG(test) macro
26 #ifndef assert
27 #define assert(test) ((void)0)
/Zephyr-Core-3.4.0/tests/drivers/build_all/pwm/boards/
Darty_a7_arm_designstart_m1.overlay15 xlnx,gen0-assert = <0x1>;
16 xlnx,gen1-assert = <0x1>;
18 xlnx,trig0-assert = <0x1>;
19 xlnx,trig1-assert = <0x0>;
/Zephyr-Core-3.4.0/tests/drivers/build_all/counter/boards/
Darty_a7_arm_designstart_m1.overlay15 xlnx,gen0-assert = <0x1>;
16 xlnx,gen1-assert = <0x1>;
18 xlnx,trig0-assert = <0x1>;
19 xlnx,trig1-assert = <0x1>;
/Zephyr-Core-3.4.0/soc/arm/st_stm32/common/
Dstm32cube_hal.c41 * @brief Generates an assert on STM32Cube HAL/LL assert trigger.
42 * @param file: specifies the file name where assert expression failed.
43 * @param line: specifies the line number where assert expression failed.
48 /* Assert condition have been verified at Cube level, force in assert_failed()
/Zephyr-Core-3.4.0/modules/hal_nordic/nrf_802154/serialization/platform/
Dnrf_802154_spinel_response_notifier.c9 #include <assert.h>
60 assert(ret == 0); in nrf_802154_spinel_response_notifier_lock_before_request()
63 assert(awaited_property == AWAITED_PROPERTY_NONE); in nrf_802154_spinel_response_notifier_lock_before_request()
100 assert(p_notify_buff_free == &notify_buff); in nrf_802154_spinel_response_notifier_free()
107 assert(ret == 0); in nrf_802154_spinel_response_notifier_free()
116 assert(notify_buff.free); in nrf_802154_spinel_response_notifier_property_notify()
121 assert(data_len <= sizeof(notify_buff.buff.data)); in nrf_802154_spinel_response_notifier_property_notify()
/Zephyr-Core-3.4.0/tests/net/mocks/
Dassert.c8 #include "assert.h"
24 * If this is an unexpected assert (i.e. not following expect_assert()) in assert_post_action()
32 * assert. In real builds (non-UT), the system will be halted by the assert. in assert_post_action()
/Zephyr-Core-3.4.0/tests/bluetooth/host/host_mocks/
Dassert.c8 #include "host_mocks/assert.h"
24 * If this is an unexpected assert (i.e. not following expect_assert()) in assert_post_action()
32 * assert. In real builds (non-UT), the system will be halted by the assert. in assert_post_action()
/Zephyr-Core-3.4.0/dts/bindings/rtc/
Dxlnx,xps-timer-1.00.a.yaml24 xlnx,gen0-assert:
33 xlnx,gen1-assert:
51 xlnx,trig0-assert:
60 xlnx,trig1-assert:
/Zephyr-Core-3.4.0/subsys/debug/
DKconfig230 config ASSERT config
242 if ASSERT
272 Assert at the time of unlocking the number of system clock cycles
276 endif # ASSERT
290 This option enables printing an assert message with information about
293 assert.
305 This option removes the assert condition from the printed assert
314 This option removes the additional message from the printed assert.
321 bool "Assert test mode"
323 This option enables the assert test mode, which allows the assert
[all …]
/Zephyr-Core-3.4.0/scripts/west_commands/tests/
Dtest_twister.py50 assert options.clobber_output == test_case["c"]
51 assert options.test_only == test_case["test_only"]
53 assert options.testsuite_root == test_case["T"]
/Zephyr-Core-3.4.0/subsys/testsuite/ztest/src/
Dztest_error_hook.c73 /* This is a flag indicate if treating assert fail as expected, then take
122 printk("Caught assert failed\n"); in assert_post_action()
125 printk("Assert error expected as part of test case.\n"); in assert_post_action()
130 /* It won't go back to caller when assert failed, and it in assert_post_action()
135 printk("Assert failed was unexpected, aborting...\n"); in assert_post_action()

12345678910>>...16