Author: davide Date: Wed Feb 6 13:48:01 2019 New Revision: 353345 URL: http://llvm.org/viewvc/llvm-project?rev=353345&view=rev Log: [testsuite] Convert a pexpect test to lit.
Summary: Reviewers: JDevlieghere, friss, zturner, labath, jingham, serge-sans-paille Subscribers: llvm-commits, lldb-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D57840 Added: lldb/trunk/lit/Commands/ lldb/trunk/lit/Commands/command-regex-delete.test lldb/trunk/lit/Commands/command-regex-unalias.test Removed: lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_regex/ Added: lldb/trunk/lit/Commands/command-regex-delete.test URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Commands/command-regex-delete.test?rev=353345&view=auto ============================================================================== --- lldb/trunk/lit/Commands/command-regex-delete.test (added) +++ lldb/trunk/lit/Commands/command-regex-delete.test Wed Feb 6 13:48:01 2019 @@ -0,0 +1,14 @@ +# Check basic functionality of command regex. +# RUN: %lldb -s %s 2>&1 | FileCheck %s + +command regex 'Help__' +# CHECK: Enter one of more sed substitution commands in the form +# We need to leave a new line after to end the regex. +s/^$/help/ + +Help__ +# CHECK: Debugger commands: + +command delete Help__ +Help__ +# CHECK: error: 'Help__' is not a valid command Added: lldb/trunk/lit/Commands/command-regex-unalias.test URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Commands/command-regex-unalias.test?rev=353345&view=auto ============================================================================== --- lldb/trunk/lit/Commands/command-regex-unalias.test (added) +++ lldb/trunk/lit/Commands/command-regex-unalias.test Wed Feb 6 13:48:01 2019 @@ -0,0 +1,11 @@ +# Check that commands created with command regex cannot be unaliased +# RUN: %lldb -s %s 2>&1 | FileCheck %s + +command regex 'Help__' +# CHECK: Enter one of more sed substitution commands in the form +# We need to leave a new line after to end the regex. +s/^$/help/ + +command unalias Help__ +Help__ +# CHECK: error: 'Help__' is not an alias _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits