xref: /llvm-project/lldb/test/Shell/Driver/LocalLLDBInit.test (revision 88591aa0ca7e4d99da353d49f91ea63e43fb55e0)
1# REQUIRES: python
2#
3# RUN: mkdir -p %t.root
4# RUN: mkdir -p %t.home
5# RUN: cp %S/Inputs/.lldbinit %t.root
6# RUN: cp %S/Inputs/syntax_error.py %t.root
7# RUN: cd %t.root
8# RUN: env HOME=%t.home %lldb-init -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=WARNINIT --check-prefix=CHECK
9# RUN: env HOME=%t.home %lldb-init -local-lldbinit -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=ALLOWINIT --check-prefix=NOINIT
10# RUN: %lldb -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=NOINIT --check-prefix=CHECK
11
12# WARNINIT: There is a .lldbinit file in the current directory which is not being read.
13# NOINIT-NOT: There is a .lldbinit file in the current directory which is not being read.
14# CHECK-NOT: bogus
15# ALLOWINIT: name 'prlnt' is not defined
16# ALLOWINIT: bogus
17