1""" 2Test multiword commands ('platform' in this case). 3""" 4 5import lldb 6from lldbsuite.test.decorators import * 7from lldbsuite.test.lldbtest import * 8 9class MultiwordCommandsTestCase(TestBase): 10 11 @no_debug_info_test 12 def test_ambiguous_subcommand(self): 13 self.expect("platform s", error=True, 14 substrs=["ambiguous command 'platform s'. Possible completions:", 15 "\tselect\n", 16 "\tsettings\n", 17 "\tshell\n"]) 18 19 @no_debug_info_test 20 def test_empty_subcommand(self): 21 self.expect("platform \"\"", error=True, substrs=["Need to specify a non-empty subcommand."]) 22 23 @no_debug_info_test 24 def test_help(self): 25 # <multiword> help brings up help. 26 self.expect("platform help", 27 substrs=["Commands to manage and create platforms.", 28 "Syntax: platform [", 29 "The following subcommands are supported:", 30 "connect", 31 "Select the current platform"]) 32