[Lldb-commits] [lldb] 382f6d3 - [lldb/Test] Add test for man page and lldb --help output
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 1 13:04:52 PDT 2020
Author: Jonas Devlieghere
Date: 2020-06-01T13:04:45-07:00
New Revision: 382f6d37a1f2ec472a1f869be2d33078fe6ea8da
URL: https://github.com/llvm/llvm-project/commit/382f6d37a1f2ec472a1f869be2d33078fe6ea8da
DIFF: https://github.com/llvm/llvm-project/commit/382f6d37a1f2ec472a1f869be2d33078fe6ea8da.diff
LOG: [lldb/Test] Add test for man page and lldb --help output
Added:
lldb/test/Shell/Driver/TestHelp.test
Modified:
Removed:
################################################################################
diff --git a/lldb/test/Shell/Driver/TestHelp.test b/lldb/test/Shell/Driver/TestHelp.test
new file mode 100644
index 000000000000..fc53e80bdc4d
--- /dev/null
+++ b/lldb/test/Shell/Driver/TestHelp.test
@@ -0,0 +1,67 @@
+UNSUPPORTED: lldb-repro
+
+RUN: %lldb --help | FileCheck %s
+RUN: cat %S/../../../docs/man/lldb.rst | FileCheck %s
+
+CHECK: ATTACHING
+CHECK: --attach-name
+CHECK: --attach-pid
+CHECK: -n <value>
+CHECK: -p <value>
+CHECK: --wait-for
+CHECK: -w
+
+CHECK: COMMANDS
+CHECK: --batch
+CHECK: -b
+CHECK: -K <value>
+CHECK: -k <value>
+CHECK: --local-lldbinit
+CHECK: --no-lldbinit
+CHECK: --one-line-before-file
+CHECK: --one-line-on-crash
+CHECK: --one-line
+CHECK: -O
+CHECK: -o
+CHECK: -Q
+CHECK: --source-before-file
+CHECK: --source-on-crash
+CHECK: --source-quietly
+CHECK: --source
+CHECK: -S
+CHECK: -s
+CHECK: -x
+
+CHECK: OPTIONS
+CHECK: --arch
+CHECK: -a
+CHECK: --capture-path
+CHECK: --capture
+CHECK: --core
+CHECK: -c
+CHECK: --debug
+CHECK: -d
+CHECK: --editor
+CHECK: -e
+CHECK: --file
+CHECK: -f
+CHECK: --help
+CHECK: -h
+CHECK: --no-use-colors
+CHECK: --replay
+CHECK: --version
+CHECK: -v
+CHECK: -X
+
+CHECK: REPL
+CHECK: -r
+CHECK: --repl-language
+CHECK: --repl
+CHECK: -R
+CHECK: -r
+
+CHECK: SCRIPTING
+CHECK: -l
+CHECK: --python-path
+CHECK: -P
+CHECK: --script-language
More information about the lldb-commits
mailing list