Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 116) sorted by relevance

12345

/Zephyr-4.2.1/samples/drivers/uart/passthrough/src/
Dmain.c57 struct patch_info *patch = (struct patch_info *)ctx; in uart_cb() local
62 while (uart_irq_update(patch->rx_dev) > 0) { in uart_cb()
63 ret = uart_irq_rx_ready(patch->rx_dev); in uart_cb()
65 patch->rx_error = true; in uart_cb()
71 len = ring_buf_put_claim(patch->rx_ring_buf, &buf, RING_BUF_SIZE); in uart_cb()
74 uart_irq_rx_disable(patch->rx_dev); in uart_cb()
75 patch->rx_overflow = true; in uart_cb()
79 ret = uart_fifo_read(patch->rx_dev, buf, len); in uart_cb()
81 patch->rx_error = true; in uart_cb()
88 ret = ring_buf_put_finish(patch->rx_ring_buf, len); in uart_cb()
[all …]
/Zephyr-4.2.1/scripts/west_commands/tests/
Dtest_bossac.py10 from unittest.mock import patch, call
161 @patch('runners.bossac.BossacBinaryRunner.supports',
163 @patch('runners.bossac.BossacBinaryRunner.get_chosen_code_partition_node',
165 @patch('runners.core.ZephyrBinaryRunner.require',
167 @patch('runners.core.ZephyrBinaryRunner.check_call')
189 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
194 @patch('runners.bossac.BossacBinaryRunner.supports',
196 @patch('runners.bossac.BossacBinaryRunner.get_chosen_code_partition_node',
198 @patch('runners.core.ZephyrBinaryRunner.require',
200 @patch('runners.core.ZephyrBinaryRunner.check_call')
[all …]
Dtest_rfp.py7 from unittest.mock import call, patch
144 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
145 @patch('runners.core.ZephyrBinaryRunner.check_call')
146 @patch('runners.rfp.RfpBinaryRunner.default_rfp')
160 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
165 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
166 @patch('runners.core.ZephyrBinaryRunner.check_call')
167 @patch('runners.rfp.RfpBinaryRunner.default_rfp')
186 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
191 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
[all …]
Dtest_mdb.py7 from unittest.mock import patch
201 @patch('runners.mdb.MdbNsimBinaryRunner.call')
202 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
209 @patch('runners.mdb.MdbNsimBinaryRunner.call')
210 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
217 @patch('runners.mdb.MdbNsimBinaryRunner.check_call')
218 @patch('runners.mdb.MdbNsimBinaryRunner.call')
219 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
230 @patch('runners.mdb.MdbHwBinaryRunner.call')
231 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
[all …]
Dtest_pyocd.py7 from unittest.mock import patch
167 @patch('runners.pyocd.PyOcdBinaryRunner.check_call')
168 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
179 @patch('runners.pyocd.PyOcdBinaryRunner.run_server_and_client')
180 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
191 @patch('runners.pyocd.PyOcdBinaryRunner.check_call')
192 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
210 @patch('runners.pyocd.BuildConfiguration')
211 @patch('runners.pyocd.PyOcdBinaryRunner.check_call')
212 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
[all …]
Dtest_nxp_s32dbg.py7 from unittest.mock import patch
169 @patch('platform.system')
170 @patch('runners.core.ZephyrBinaryRunner.check_call')
171 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
189 @patch.dict(os.environ, TEST_S32DS_RUNTIME_ENV, clear=True)
190 @patch('platform.system')
191 @patch('tempfile.TemporaryDirectory')
192 @patch('runners.nxp_s32dbg.NXPS32DebugProbeRunner.get_script', side_effect=s32dbg_get_script)
193 @patch('runners.core.ZephyrBinaryRunner.popen_ignore_int')
194 @patch('runners.core.ZephyrBinaryRunner.check_call')
[all …]
Dtest_stm32cubeprogrammer.py8 from unittest.mock import patch, call
472 @patch("runners.stm32cubeprogrammer.platform.system")
473 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH)
474 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True)
475 @patch.dict("runners.stm32cubeprogrammer.os.environ", ENVIRON)
476 @patch("runners.core.ZephyrBinaryRunner.require")
477 @patch("runners.stm32cubeprogrammer.STM32CubeProgrammerBinaryRunner.check_call")
478 @patch("os.path.isfile", side_effect=os_path_isfile_patch)
514 @patch("runners.stm32cubeprogrammer.platform.system")
515 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH)
[all …]
Dtest_gd32isp.py7 from unittest.mock import patch, call
48 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
49 @patch('runners.core.ZephyrBinaryRunner.check_call')
52 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
57 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
58 @patch('runners.core.ZephyrBinaryRunner.check_call')
69 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
Dtest_xsdb.py6 from unittest.mock import patch, call
95 @patch("runners.xsdb.os.path.exists", return_value=True)
96 @patch("runners.xsdb.XSDBBinaryRunner.check_call")
100 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"):
117 @patch("runners.xsdb.os.path.exists", return_value=True)
118 @patch("runners.xsdb.XSDBBinaryRunner.check_call")
140 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"):
Dtest_stm32flash.py8 from unittest.mock import patch, call
76 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
77 @patch('runners.core.ZephyrBinaryRunner.check_call')
89 with patch('os.path.getsize', side_effect=os_path_getsize_patch):
90 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
95 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
96 @patch('runners.core.ZephyrBinaryRunner.check_call')
109 with patch('os.path.getsize', side_effect=os_path_getsize_patch):
110 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
Dtest_blackmagicprobe.py7 from unittest.mock import patch, call
60 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
61 @patch('runners.core.ZephyrBinaryRunner.check_call')
69 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
70 @patch('runners.core.ZephyrBinaryRunner.check_call')
82 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
83 @patch('runners.core.ZephyrBinaryRunner.check_call')
120 @patch('serial.tools.list_ports.comports')
121 @patch('os.path.exists')
122 @patch('glob.glob')
[all …]
Dtest_dediprog.py8 from unittest.mock import patch, call
49 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
50 @patch('runners.core.ZephyrBinaryRunner.check_call')
64 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
65 @patch('runners.core.ZephyrBinaryRunner.check_call')
Dtest_dfu_util.py8 from unittest.mock import patch, call
77 @patch('runners.dfu.DfuUtilBinaryRunner.find_device',
79 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
80 @patch('runners.core.ZephyrBinaryRunner.check_call')
86 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
105 @patch('runners.dfu.DfuUtilBinaryRunner.find_device',
107 @patch('runners.core.ZephyrBinaryRunner.get_flash_address',
109 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch)
110 @patch('runners.core.ZephyrBinaryRunner.check_call')
135 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
/Zephyr-4.2.1/scripts/tests/twister/
Dtest_jobserver.py83 with mock.patch('subprocess.Popen', popen_mock), \
84 mock.patch('os.environ', env_mock):
146 with mock.patch('os.close', close_mock), \
147 mock.patch('os.write', write_mock), \
148 mock.patch('os.set_blocking', set_blocking_mock), \
149 mock.patch('os.pipe', mock_pipe), \
150 mock.patch('selectors.DefaultSelector', selector_mock):
256 with mock.patch('fcntl.fcntl', mock_fcntl), \
257 mock.patch('os.close', mock.Mock()), \
258 mock.patch('twisterlib.jobserver.GNUMakeJobClient.__init__',
[all …]
Dtest_environment.py151 with mock.patch('sys.argv', ['twister'] + args):
159 with mock.patch('os.name', os_name) \
161 mock.patch('shutil.which', which_mock) \
163 mock.patch('twisterlib.environment' \
178 with mock.patch('sys.argv', ['twister'] + args):
187 with mock.patch('twisterlib.size_calc.SizeCalculator', mock_calc):
200 with mock.patch('sys.argv', ['twister'] + args):
203 with mock.patch('twisterlib.environment.PYTEST_PLUGIN_INSTALLED', True):
225 with mock.patch('sys.argv', ['twister'] + args):
307 with mock.patch('os.path.abspath', side_effect=mocked_abspath):
[all …]
Dtest_scl.py66 with mock.patch.dict('sys.modules', modules_mock, clear=True), \
67 mock.patch('sys.meta_path', meta_path_mock):
106 with mock.patch.dict('sys.modules', modules_mock, clear=True), \
107 mock.patch('sys.meta_path', meta_path_mock):
154 with mock.patch('yaml.load', side_effect=mock_load), \
155 mock.patch('builtins.open', mock.mock_open()) as mock_file:
199 with mock.patch('scl.yaml_load', side_effect=mock_load), \
200 mock.patch('scl._yaml_validate', side_effect=mock_validate), \
236 with mock.patch('pykwalify.core.Core', core_mock), \
Dtest_config_parser.py72 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
98 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
161 with mock.patch('warnings.warn') as warn_mock:
181 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
200 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
/Zephyr-4.2.1/subsys/net/lib/lwm2m/
DREADME_lwm2m23 The above command also applies the lwm2m_senml_cbor.patch patch file.
24 If the patch fails to apply, you can attempt to use the 3-way merge capabilities by committing the …
27 git am -3 < lwm2m_senml_cbor.patch
30 The patch was created by, committing the unpatched changes, then committing the desired patches in …
33 git format-patch --stdout HEAD~1.. > lwm2m_senml_cbor.patch
/Zephyr-4.2.1/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py35 @mock.patch('shutil.which', return_value=None)
41 @mock.patch('shutil.which', return_value='west')
49 @mock.patch('shutil.which', return_value='west')
60 @mock.patch('shutil.which', return_value='west')
71 @mock.patch('shutil.which', return_value='west')
84 @mock.patch('shutil.which', return_value='west')
97 @mock.patch('shutil.which', return_value='west')
109 @mock.patch('shutil.which', return_value='west')
121 @mock.patch('shutil.which', return_value='west')
134 @mock.patch('shutil.which', return_value='west')
[all …]
/Zephyr-4.2.1/scripts/coccinelle/
Dconst_config_info.cocci12 // Note that this patch may produce incorrect results if config_info
17 virtual patch
22 depends on patch
34 depends on patch
46 depends on patch
58 depends on patch
70 depends on patch
82 depends on patch
94 depends on patch
108 depends on patch
Dunsigned_shift.cocci8 virtual patch
10 @depends on patch && !(file in "ext")@
/Zephyr-4.2.1/scripts/tests/twister_blackbox/
Dtest_addon.py46 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
57 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
73 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
84 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
106 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
117 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
130 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
142 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
161 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
172 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
[all …]
Dtest_filter.py98 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
110 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
126 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
138 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
154 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
166 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
192 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
202 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
226 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
236 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
[all …]
Dtest_printouts.py27 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', suite_filename_mock)
287 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
323 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
359 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
382 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
416 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
436 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
458 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
468 @mock.patch.object(TestPlan, 'SAMPLE_FILENAME', sample_filename_mock)
477 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
[all …]
/Zephyr-4.2.1/scripts/build/
Dcheck_init_priorities_test.py59 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
92 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
147 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
155 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
164 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
179 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
198 @mock.patch("check_init_priorities.ZephyrInitLevels._object_name")
199 @mock.patch("check_init_priorities.ZephyrInitLevels._initlevel_pointer")
200 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None)
262 @mock.patch("check_init_priorities.ZephyrInitLevels")
[all …]

12345