[Lldb-commits] [lldb] r148899 - /lldb/trunk/test/functionalities/completion/TestCompletion.py

Johnny Chen johnny.chen at apple.com
Tue Jan 24 17:37:36 PST 2012


Author: johnny
Date: Tue Jan 24 19:37:36 2012
New Revision: 148899

URL: http://llvm.org/viewvc/llvm-project?rev=148899&view=rev
Log:
Add some more test cases for command completion:

  o complete an unambiguous option
  o complete/list the available option values
  o complete/list the candidate command names

Modified:
    lldb/trunk/test/functionalities/completion/TestCompletion.py

Modified: lldb/trunk/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/completion/TestCompletion.py?rev=148899&r1=148898&r2=148899&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/test/functionalities/completion/TestCompletion.py Tue Jan 24 19:37:36 2012
@@ -18,6 +18,18 @@
         system(["/bin/sh", "-c", "rm -f child_send.txt"])
         system(["/bin/sh", "-c", "rm -f child_read.txt"])
 
+    def test_frame_variable_dash_w(self):
+        """Test that 'frame variable -w' completes to 'frame variable -w '."""
+        self.complete_from_to('frame variable -w', 'frame variable -w ')
+
+    def test_frame_variable_dash_w_space(self):
+        """Test that 'frame variable -w ' completes to ['Available completions:', 'read', 'write', 'read_write']."""
+        self.complete_from_to('frame variable -w ', ['Available completions:', 'read', 'write', 'read_write'])
+
+    def test_help_fi(self):
+        """Test that 'help fi' completes to ['Available completions:', 'file', 'finish']."""
+        self.complete_from_to('help fi', ['Available completions:', 'file', 'finish'])
+
     def test_settings_append_target_er(self):
         """Test that 'settings append target.er' completes to 'settings append target.error-path'."""
         self.complete_from_to('settings append target.er', 'settings append target.error-path')





More information about the lldb-commits mailing list