Home
last modified time | relevance | path

Searched full:patch (Results 1 – 25 of 99) sorted by relevance

1234

/Zephyr-Core-3.5.0/scripts/west_commands/tests/
Dtest_bossac.py10 from unittest.mock import patch, call
154 @patch('runners.bossac.BossacBinaryRunner.supports',
156 @patch('runners.bossac.BossacBinaryRunner.get_chosen_code_partition_node',
158 @patch('runners.core.ZephyrBinaryRunner.require',
160 @patch('runners.core.ZephyrBinaryRunner.check_call')
181 with patch('os.path.isfile', side_effect=os_path_isfile_patch):
186 @patch('runners.bossac.BossacBinaryRunner.supports',
188 @patch('runners.bossac.BossacBinaryRunner.get_chosen_code_partition_node',
190 @patch('runners.core.ZephyrBinaryRunner.require',
192 @patch('runners.core.ZephyrBinaryRunner.check_call')
[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_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_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_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_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):
Dtest_stm32cubeprogrammer.py7 from unittest.mock import patch, call
334 @patch("runners.stm32cubeprogrammer.platform.system")
335 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH)
336 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True)
337 @patch.dict("runners.stm32cubeprogrammer.os.environ", ENVIRON)
338 @patch("runners.core.ZephyrBinaryRunner.require")
339 @patch("runners.stm32cubeprogrammer.STM32CubeProgrammerBinaryRunner.check_call")
368 @patch("runners.stm32cubeprogrammer.platform.system")
369 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH)
370 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True)
[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')
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
DREADME_lwm2m22 The above command also applies the lwm2m_senml_cbor.patch patch file.
23 If the patch fails to apply, you can attempt to use the 3-way merge capabilities by committing the …
26 git am -3 < lwm2m_senml_cbor.patch
29 The patch was created by, committing the unpatched changes, then committing the desired patches in …
32 git format-patch --stdout HEAD~1.. > lwm2m_senml_cbor.patch
Dlwm2m_senml_cbor_regenerate.sh13 git commit -s -m"pre-patch"
15 git apply lwm2m_senml_cbor.patch
/Zephyr-Core-3.5.0/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")@
Dignore_return.cocci11 virtual patch
13 @depends on patch && !(file in "ext")@
Dfind_functions.cocci4 // In patch mode, patch all device instance to const (if not already).
16 virtual patch
52 depends on patch
Dint_ms_to_timeout.cocci16 virtual patch
57 depends on patch
100 depends on patch
177 depends on patch
233 depends on patch@
295 @depends on patch@
Dnoderef.cocci14 virtual patch
16 @depends on patch && !(file in "ext")@
50 @r depends on !patch && !(file in "ext")@
Dms_timeout.cocci15 virtual patch
67 depends on patch
123 depends on patch
181 depends on patch
/Zephyr-Core-3.5.0/scripts/
Dcoccicheck20 -m= , --mode= specify the mode use {report, patch, org, context, chain}
99 OPTIONS="--patch $ZEPHYR_BASE $OPTIONS"
110 echo 'Available modes are the following: 'patch', 'report', 'context', 'org''
118 echo 'All available modes will be tried (in that order): patch, report, context, org'
124 echo 'Please check for false positives in the output before submitting a patch.'
125 echo 'When using "patch" mode, carefully review the patch before submitting it.'
161 elif [[ $VIRTUAL == *patch* ]]; then
162 MODE=patch
177 echo 'Message example to submit a patch:'
181 if [ "$MODE" = "patch" ] ; then
[all …]
/Zephyr-Core-3.5.0/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py32 @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-Core-3.5.0/scripts/tests/twister/
Dtest_environment.py153 with mock.patch('sys.argv', ['twister'] + args):
161 with mock.patch('os.name', os_name) \
163 mock.patch('shutil.which', which_mock) \
165 mock.patch('twisterlib.environment' \
180 with mock.patch('sys.argv', ['twister'] + args):
189 with mock.patch('twisterlib.size_calc.SizeCalculator', mock_calc):
202 with mock.patch('sys.argv', ['twister'] + args):
205 with mock.patch('twisterlib.environment.PYTEST_PLUGIN_INSTALLED', True):
227 with mock.patch('sys.argv', ['twister'] + args):
308 with mock.patch(
[all …]
Dtest_handlers.py110 with mock.patch('os.name', os_name), \
111 mock.patch.dict('sys.modules', modules_mock, clear=True), \
112 mock.patch('sys.meta_path', meta_path_mock), \
172 with mock.patch.object(Handler, '_missing_suite_name') as _missing_mocked:
221 with mock.patch(
225 mock.patch(
266 with mock.patch('psutil.Process', return_value=mock_process), \
267 mock.patch(
304 with mock.patch(
308 mock.patch('os.unlink', mock.Mock()) as mock_unlink:
[all …]
Dtest_scl.py72 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), \
/Zephyr-Core-3.5.0/scripts/build/
Dcheck_init_priorities_test.py58 @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 …]
/Zephyr-Core-3.5.0/doc/develop/tools/
Dcoccinelle.rst69 For Semantic Patch Language(SmPL) grammar documentation refer to:
79 Four basic modes are defined: ``patch``, ``report``, ``context``, and
83 * ``patch`` proposes a fix, when possible.
107 To make a report for every semantic patch, run the following command:
117 ./scripts/coccicheck --mode=patch
119 The ``coccicheck`` target applies every semantic patch available in the
122 For each semantic patch, a commit message is proposed. It gives a
123 description of the problem being checked by the semantic patch, and
159 Using Coccinelle with a single semantic patch
163 semantic patch. In that case, the variable must be initialized with
[all …]

1234