Lines Matching +full:opt +full:- +full:in
3 # SPDX-License-Identifier: Apache-2.0
20 TEST_PYOCD = 'test-pyocd'
22 TEST_DEV_ID = 'test-dev-id'
23 TEST_FREQUENCY = 'test-frequency'
24 TEST_DAPARG = 'test-daparg'
25 TEST_TARGET = 'test-target'
26 TEST_FLASH_OPTS = ['--test-flash', 'args']
29 TEST_TOOL_OPTS = ['test-opt-1', 'test-opt-2']
47 ['--target', TEST_TARGET,
48 '--daparg', TEST_DAPARG,
49 '--pyocd', TEST_PYOCD],
50 [f'--flash-opt={o}' for o in TEST_FLASH_OPTS],
51 ['--gdb-port', str(TEST_GDB_PORT),
52 '--telnet-port', str(TEST_TELNET_PORT),
53 '--dev-id', TEST_DEV_ID,
54 '--frequency', str(TEST_FREQUENCY)],
55 [f'--tool-opt={o}' for o in TEST_TOOL_OPTS]))
57 TEST_DEF_PARAMS = ['--target', TEST_TARGET]
67 # tests that construct runners from parsed command-line arguments, to
73 '-e', 'sector',
74 '-a', hex(TEST_ADDR), '-da', TEST_DAPARG,
75 '-t', TEST_TARGET, '-u', TEST_DEV_ID,
76 '-f', TEST_FREQUENCY] +
80 FLASH_DEF_EXPECTED_CALL = ['pyocd', 'flash', '-e', 'sector',
81 '-t', TEST_TARGET, RC_KERNEL_HEX]
86 '-da', TEST_DAPARG,
87 '-p', str(TEST_GDB_PORT),
88 '-T', str(TEST_TELNET_PORT),
89 '-t', TEST_TARGET,
90 '-u', TEST_DEV_ID,
91 '-f', TEST_FREQUENCY] + TEST_TOOL_OPTS
93 '-ex', 'target remote :{}'.format(TEST_GDB_PORT),
94 '-ex', 'monitor halt',
95 '-ex', 'monitor reset',
96 '-ex', 'load']
99 '-p', '3333',
100 '-T', '4444',
101 '-t', TEST_TARGET]
103 '-ex', 'target remote :3333',
104 '-ex', 'monitor halt',
105 '-ex', 'monitor reset',
106 '-ex', 'load']
111 '-da', TEST_DAPARG,
112 '-p', str(TEST_GDB_PORT),
113 '-T', str(TEST_TELNET_PORT),
114 '-t', TEST_TARGET,
115 '-u', TEST_DEV_ID,
116 '-f', TEST_FREQUENCY] + TEST_TOOL_OPTS
119 '-p', '3333',
120 '-T', '4444',
121 '-t', TEST_TARGET]
132 # constructor, or a list of command-line arguments to parse and
156 assert program in ['pyocd', TEST_PYOCD, RC_GDB]