/Zephyr-latest/samples/drivers/uart/passthrough/src/ |
D | main.c | 57 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-latest/scripts/west_commands/tests/ |
D | test_bossac.py | 10 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 …]
|
D | test_mdb.py | 7 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 …]
|
D | test_pyocd.py | 7 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 …]
|
D | test_nxp_s32dbg.py | 7 from unittest.mock import patch 168 @patch('platform.system') 169 @patch('runners.core.ZephyrBinaryRunner.check_call') 170 @patch('runners.core.ZephyrBinaryRunner.require', side_effect=require_patch) 188 @patch.dict(os.environ, TEST_S32DS_RUNTIME_ENV, clear=True) 189 @patch('platform.system') 190 @patch('tempfile.TemporaryDirectory') 191 @patch('runners.nxp_s32dbg.NXPS32DebugProbeRunner.get_script', side_effect=s32dbg_get_script) 192 @patch('runners.core.ZephyrBinaryRunner.popen_ignore_int') 193 @patch('runners.core.ZephyrBinaryRunner.check_call') [all …]
|
D | test_xsdb.py | 6 from unittest.mock import patch, call 46 @patch("runners.xsdb.os.path.exists", return_value=True) 47 @patch("runners.xsdb.XSDBBinaryRunner.check_call") 51 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"): 65 @patch("runners.xsdb.os.path.exists", return_value=True) 66 @patch("runners.xsdb.XSDBBinaryRunner.check_call") 82 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"):
|
D | test_stm32cubeprogrammer.py | 7 from unittest.mock import patch, call 383 @patch("runners.stm32cubeprogrammer.platform.system") 384 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH) 385 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True) 386 @patch.dict("runners.stm32cubeprogrammer.os.environ", ENVIRON) 387 @patch("runners.core.ZephyrBinaryRunner.require") 388 @patch("runners.stm32cubeprogrammer.STM32CubeProgrammerBinaryRunner.check_call") 419 @patch("runners.stm32cubeprogrammer.platform.system") 420 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH) 421 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True) [all …]
|
D | test_gd32isp.py | 7 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):
|
D | test_stm32flash.py | 8 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):
|
D | test_blackmagicprobe.py | 7 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 …]
|
D | test_dediprog.py | 8 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')
|
D | test_dfu_util.py | 8 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-latest/scripts/tests/twister/ |
D | test_jobserver.py | 82 with mock.patch('subprocess.Popen', popen_mock), \ 83 mock.patch('os.environ', env_mock): 145 with mock.patch('os.close', close_mock), \ 146 mock.patch('os.write', write_mock), \ 147 mock.patch('os.set_blocking', set_blocking_mock), \ 148 mock.patch('os.pipe', mock_pipe), \ 149 mock.patch('selectors.DefaultSelector', selector_mock): 255 with mock.patch('fcntl.fcntl', mock_fcntl), \ 256 mock.patch('os.close', mock.Mock()), \ 257 mock.patch('twisterlib.jobserver.GNUMakeJobClient.__init__', [all …]
|
D | test_environment.py | 169 with mock.patch('sys.argv', ['twister'] + args): 177 with mock.patch('os.name', os_name) \ 179 mock.patch('shutil.which', which_mock) \ 181 mock.patch('twisterlib.environment' \ 196 with mock.patch('sys.argv', ['twister'] + args): 205 with mock.patch('twisterlib.size_calc.SizeCalculator', mock_calc): 218 with mock.patch('sys.argv', ['twister'] + args): 221 with mock.patch('twisterlib.environment.PYTEST_PLUGIN_INSTALLED', True): 243 with mock.patch('sys.argv', ['twister'] + args): 325 with mock.patch('os.path.abspath', side_effect=mocked_abspath): [all …]
|
D | test_scl.py | 72 with mock.patch.dict('sys.modules', modules_mock, clear=True), \ 73 mock.patch('sys.meta_path', meta_path_mock): 112 with mock.patch.dict('sys.modules', modules_mock, clear=True), \ 113 mock.patch('sys.meta_path', meta_path_mock): 160 with mock.patch('yaml.load', side_effect=mock_load), \ 161 mock.patch('builtins.open', mock.mock_open()) as mock_file: 205 with mock.patch('scl.yaml_load', side_effect=mock_load), \ 206 mock.patch('scl._yaml_validate', side_effect=mock_validate), \ 242 with mock.patch('pykwalify.core.Core', core_mock), \
|
D | test_config_parser.py | 67 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)): 93 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)): 156 with mock.patch('warnings.warn') as warn_mock: 176 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)): 195 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | README_lwm2m | 23 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-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | hardware_adapter_test.py | 32 @mock.patch('shutil.which', return_value=None) 38 @mock.patch('shutil.which', return_value='west') 46 @mock.patch('shutil.which', return_value='west') 57 @mock.patch('shutil.which', return_value='west') 68 @mock.patch('shutil.which', return_value='west') 81 @mock.patch('shutil.which', return_value='west') 94 @mock.patch('shutil.which', return_value='west') 106 @mock.patch('shutil.which', return_value='west') 118 @mock.patch('shutil.which', return_value='west') 131 @mock.patch('shutil.which', return_value='west') [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | const_config_info.cocci | 12 // 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
|
D | unsigned_shift.cocci | 8 virtual patch 10 @depends on patch && !(file in "ext")@
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_addon.py | 45 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 56 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 72 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 83 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 105 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 116 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 129 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 141 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 160 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 171 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ [all …]
|
D | test_filter.py | 98 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 110 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 126 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 138 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 154 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 166 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 192 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 202 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 226 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 236 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ [all …]
|
D | test_testplan.py | 58 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 67 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 91 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 100 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 123 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 124 @mock.patch.object(TestPlan, 'SAMPLE_FILENAME', '') 134 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
|
D | test_tooling.py | 39 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 49 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 59 @mock.patch.object(TestPlan, 'SAMPLE_FILENAME', sample_filename_mock) 71 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \ 105 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock) 112 with mock.patch.object(sys, 'argv', [sys.argv[0]] + args), \
|
/Zephyr-latest/scripts/build/ |
D | check_init_priorities_test.py | 58 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 91 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 143 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 151 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 160 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 177 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 194 @mock.patch("check_init_priorities.ZephyrInitLevels._object_name") 195 @mock.patch("check_init_priorities.ZephyrInitLevels._initlevel_pointer") 196 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 246 @mock.patch("check_init_priorities.ZephyrInitLevels") [all …]
|