/Zephyr-latest/tests/kernel/pipe/pipe/src/ |
D | test_pipe.c | 54 int return_value; member 143 int return_value; in pipe_put_single() local 153 return_value = k_pipe_put(&test_pipe, &tx_buffer, in pipe_put_single() 157 zassert_true((return_value == in pipe_put_single() 158 single_elements[index].return_value), in pipe_put_single() 161 single_elements[index].return_value, return_value); in pipe_put_single() 177 int return_value; in pipe_get_single() local 190 return_value = k_pipe_get(&test_pipe, &rx_buffer, in pipe_get_single() 195 zassert_true((return_value == in pipe_get_single() 196 single_elements[index].return_value), in pipe_get_single() [all …]
|
/Zephyr-latest/scripts/west_commands/tests/ |
D | test_bossac.py | 162 return_value=False) 164 return_value=None) 195 return_value=False) 197 return_value=None) 232 return_value=False) 234 return_value=None) 270 return_value=False) 272 return_value=None) 306 return_value=True) 308 return_value=True) [all …]
|
D | test_xsdb.py | 46 @patch("runners.xsdb.os.path.exists", return_value=True) 51 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"): 65 @patch("runners.xsdb.os.path.exists", return_value=True) 82 with patch("runners.xsdb.os.path.join", return_value="default_cfg_path"):
|
D | test_blackmagicprobe.py | 125 gg.return_value = globs 126 ope.return_value = known_path 137 stlpc.return_value = [fake_comport1, fake_comport2, fake_comport3] 139 stlpc.return_value = [] 154 gg.return_value = globs 168 stlpc.return_value = [fake_comport1, fake_comport2, 171 stlpc.return_value = [] 195 stlpc.return_value = [fake_comport1, fake_comport2, 198 stlpc.return_value = []
|
D | test_stm32cubeprogrammer.py | 384 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH) 385 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True) 396 system.return_value = tc["system"] 420 @patch("runners.stm32cubeprogrammer.Path.home", return_value=HOME_PATH) 421 @patch("runners.stm32cubeprogrammer.Path.exists", return_value=True) 432 system.return_value = tc["system"]
|
D | test_nxp_s32dbg.py | 173 system.return_value = osname 199 temporary_dir.return_value.__enter__.return_value = tmp_path 204 system.return_value = osname 233 temporary_dir.return_value.__enter__.return_value = tmp_path 238 system.return_value = osname
|
D | test_canopen_program.py | 70 mock = cpd.return_value 71 mock.flash_status.return_value = 0 72 mock.wait_for_flash_status_ok.return_value = 0 73 mock.swid.return_value = 0
|
/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/build/ |
D | check_init_priorities_test.py | 58 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 64 mock_elf.iter_sections.return_value = [sts, rel] 83 sts.iter_symbols.return_value = [s0, s1, s2] 91 @mock.patch("check_init_priorities.ZephyrInitLevels.__init__", return_value=None) 97 mock_elf.iter_sections.return_value = [sts, rel] 127 sts.iter_symbols.return_value = [s0, s1, s2, s3, s4, s5, s6] 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) 166 obj._elf.get_section.return_value = mock_section [all …]
|
/Zephyr-latest/tests/benchmarks/sys_kernel/src/ |
D | mem_slab.c | 73 int return_value = 0; in mem_slab_test() local 86 return_value += check_result(i, t); in mem_slab_test() 104 return_value += check_result(i, t); in mem_slab_test() 106 return return_value; in mem_slab_test()
|
D | sema.c | 111 int return_value = 0; in sema_test() local 134 return_value += check_result(i, t); in sema_test() 159 return_value += check_result(i, t); in sema_test() 185 return_value += check_result(i, t); in sema_test() 187 return return_value; in sema_test()
|
D | stack.c | 140 int return_value = 0; in stack_test() local 164 return_value += check_result(i, t); in stack_test() 191 return_value += check_result(i, t); in stack_test() 234 return_value += check_result(i * 2, t); in stack_test() 236 return return_value; in stack_test()
|
D | lifo.c | 138 int return_value = 0; in lifo_test() local 167 return_value += check_result(i, t); in lifo_test() 201 return_value += check_result(i, t); in lifo_test() 247 return_value += check_result(i * 2, t); in lifo_test() 254 return return_value; in lifo_test()
|
D | mwfifo.c | 139 int return_value = 0; in fifo_test() local 167 return_value += check_result(i, t); in fifo_test() 199 return_value += check_result(i, t); in fifo_test() 247 return_value += check_result(i * 2, t); in fifo_test() 254 return return_value; in fifo_test()
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_handlers.py | 46 type(testsuite).source_dir = mock.PropertyMock(return_value='') 51 type(instance).build_dir = mock.PropertyMock(return_value=str(build_dir)) 54 type(platform).binaries = mock.PropertyMock(return_value=[]) 57 type(instance.testsuite).timeout = mock.PropertyMock(return_value=60) 59 return_value=2 228 mock_process.children = mock.Mock(return_value=[mock_child1, mock_child2]) 231 mock_proc.terminate = mock.Mock(return_value=None) 232 mock_proc.kill = mock.Mock(return_value=None) 234 with mock.patch('psutil.Process', return_value=mock_process), \ 250 return_value=[mock_child_neg1, mock_child2] [all …]
|
D | test_testsuite.py | 387 start=mock.Mock(return_value=0), 388 end=mock.Mock(return_value=0) 398 start=mock.Mock(return_value=0), 399 end=mock.Mock(return_value=26) 409 start=mock.Mock(return_value=0), 410 end=mock.Mock(return_value=0) 515 with mock.patch('os.path.isdir', return_value=isdir), \ 516 mock.patch('os.getcwd', return_value=cur_dir), \
|
D | test_log_helper.py | 35 with mock.patch('platform.system', return_value=system):
|
D | test_environment.py | 200 mock_calc_parent.child = mock.Mock(return_value=mock.Mock()) 357 return_value=mock.Mock( 358 isoformat=mock.Mock(return_value='dummy_time') 525 return_value=(out, '') 590 mock.Mock(return_value=script_result)), \
|
D | test_runner.py | 101 m.return_value = True 300 return_value=(p_out.encode(sys.getdefaultencoding()), None) 334 mock.patch('shutil.which', return_value=cmake_path), \ 432 return_value=(p_out.encode(sys.getdefaultencoding()), None) 477 mock.patch('shutil.which', return_value=cmake_path), \ 679 res = mock.Mock(get_default_domain=mock.Mock(return_value=dom)) 741 mock.patch('os.path.exists', return_value=edt_exists), \ 1529 pb.cmake = mock.Mock(return_value=cmake_res) 1530 pb.build = mock.Mock(return_value=build_res) 1537 pb.gather_metrics = mock.Mock(return_value=metrics_res) [all …]
|
D | test_jobserver.py | 79 popen_mock = mock.Mock(return_value=proc_mock) 253 gmjc_init_mock = mock.Mock(return_value=None) 448 mock.patch('os.pipe', return_value=pipe), \ 450 mock.patch('multiprocessing.cpu_count', return_value=cpu_count), \
|
D | test_testinstance.py | 494 with mock.patch.object(QEMUHandler, 'get_fifo', return_value=1), \ 495 mock.patch('shutil.which', return_value=True): 566 mock.patch('shutil.which', return_value=exec_exists): 583 testinstance.get_elf_file = mock.Mock(return_value='dummy.elf') 584 testinstance.get_buildlog_file = mock.Mock(return_value='build.log') 587 mock_sc = mock.Mock(return_value=sc_mock) 621 return_value=mock.Mock(
|
D | test_harness.py | 184 mock.patch.object(Harness, "parse_record", return_value=None) 302 returncode=returncode, communicate=mock.Mock(return_value=(b"output", None)) 305 return_value=mock.Mock( 306 __enter__=mock.Mock(return_value=proc_mock), __exit__=mock.Mock() 496 handler.get_hardware.return_value = hardware 499 handler.get_hardware.return_value = None 547 mock.patch.object(Pytest, "generate_command", return_value=cmd) 710 …mock_testsuite.compose_case_name.return_value = TestSuite.compose_case_name_(mock_testsuite, "test… 713 with mock.patch('twisterlib.testsuite.TestSuite.get_unique', return_value="dummy_suite"):
|
/Zephyr-latest/tests/benchmarks/app_kernel/src/ |
D | mailbox_r.c | 75 int32_t return_value = 0; in mailbox_get() local 85 return_value |= k_mbox_get(mailbox, in mailbox_get() 93 if (return_value != 0) { in mailbox_get()
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/fixtures/ |
D | mcumgr_fixture_test.py | 17 @mock.patch('twister_harness.helpers.mcumgr.MCUmgr.run_command', return_value='') 50 mcumgr.run_command = mock.Mock(return_value=cmd_output) 70 mcumgr.run_command = mock.Mock(return_value=cmd_output)
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | conftest.py | 24 sample_filename_mock = mock.PropertyMock(return_value='test_sample.yaml') 25 testsuite_filename_mock = mock.PropertyMock(return_value='test_data.yaml') 26 sample_filename_mock = mock.PropertyMock(return_value='test_sample.yaml')
|