• Home
  • Raw
  • Download

Lines Matching full:commands

39     """Test whether the DUT supports all diag commands."""
54 """Test whether the DUT supports the `diag channel` commands."""
56 commands = ['diag channel', f'diag channel {channel}']
58 if self.__support_commands(commands):
65 self.__output_results(commands, ret)
68 """Test whether the DUT supports the `diag cw` commands."""
69 commands = ['diag cw start', 'diag cw stop']
71 for command in commands:
76 """Test whether the DUT supports the `diag echo` commands."""
96 """Test whether the DUT supports the `diag frame` commands."""
106 """Test whether the DUT supports the `diag gpio mode` commands."""
108commands = [f'diag gpio mode {gpio}', f'diag gpio mode {gpio} in', f'diag gpio mode {gpio} out']
110 if self.__support_commands(commands):
120 self.__output_results(commands, ret)
123 """Test whether the DUT supports the `diag gpio get` and 'diag gpio set' commands."""
125 commands = [f'diag gpio get {gpio}', f'diag gpio set {gpio} 0', f'diag gpio set {gpio} 1']
127 if self.__support_commands(commands):
137 self.__output_results(commands, ret)
140 """Test whether the DUT supports the `diag power` commands."""
142 commands = ['diag power', f'diag power {power}']
144 if self.__support_commands(commands):
151 self.__output_results(commands, ret)
154 """Test whether the DUT supports the `diag powersettings` commands."""
155 commands = ['diag powersettings', 'diag powersettings 20']
157 if self.__support_commands(commands):
163 self.__output_results(commands, ret)
166 """Test whether the DUT supports the `diag radio` commands."""
167 commands = ['diag radio receive', 'diag radio sleep', 'diag radio state']
169 if self.__support_commands(commands):
180 self.__output_results(commands, ret)
183 """Test whether the DUT supports the `diag rawpowersetting` commands."""
185 commands = [
190 if self.__support_commands(commands):
200 self.__output_results(commands, ret)
203 """Test whether the DUT supports the `diag repeat` commands."""
210 commands = [cmd_diag_repeat, 'diag repeat stop', 'diag stats', 'diag stats clear']
212 if self.__support_commands(commands):
234 """Test whether the DUT supports the `diag send` commands."""
239 commands = [f'diag send {packets} {length}']
241 if self.__support_commands(commands):
259 self.__output_results(commands, ret)
262 """Test whether the DUT supports the `diag stats` commands."""
263 commands = ['diag stats', 'diag stats clear']
265 for command in commands:
270 """Test whether the DUT supports the 'diag stream' commands."""
271 commands = ['diag stream start', 'diag stream stop']
273 for command in commands:
286 def __support_commands(self, commands: List[str]) -> bool:
289 for command in commands:
296 def __output_results(self, commands: List[str], support: bool):
297 for command in commands: