From 382f6d37a1f2ec472a1f869be2d33078fe6ea8da Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 1 Jun 2020 13:04:32 -0700 Subject: [PATCH] [lldb/Test] Add test for man page and lldb --help output --- lldb/test/Shell/Driver/TestHelp.test | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 lldb/test/Shell/Driver/TestHelp.test diff --git a/lldb/test/Shell/Driver/TestHelp.test b/lldb/test/Shell/Driver/TestHelp.test new file mode 100644 index 0000000..fc53e80 --- /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 +CHECK: -p +CHECK: --wait-for +CHECK: -w + +CHECK: COMMANDS +CHECK: --batch +CHECK: -b +CHECK: -K +CHECK: -k +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 -- 2.7.4