-# REQUIRES: lua
# UNSUPPORTED: lldb-repro
#
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
-# REQUIRES: lua
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
b main
-# REQUIRES: lua
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
b main
-# REQUIRES: lua
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
b main
-# REQUIRES: lua
# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/testmodule.lua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s
# CHECK: Hello World!
-# REQUIRES: lua
# UNSUPPORTED: lldb-repro
#
# This tests that the convenience variables are not nil. Given that there is no
-# REQUIRES: lua
# RUN: %lldb -s %s --script-language lua 2>&1 | FileCheck %s
b main
breakpoint command add -s lua -o '1234_foo'
-# REQUIRES: lua
-#
# RUN: %lldb --script-language lua -s %S/Inputs/independent_state.in 2>&1 | FileCheck %s
# CHECK: 47
# CHECK: 47
-# REQUIRES: lua
# UNSUPPORTED: lldb-repro
#
# RUN: rm -rf %t.stderr %t.stdout
-# REQUIRES: lua
# REQUIRES: python
# UNSUPPORTED: lldb-repro
-# REQUIRES: lua
# RUN: %lldb --script-language lua -o 'script io.stdout:write(1000+100+10+1, "\n")' 2>&1 | FileCheck %s
# RUN: %lldb --script-language lua -o 'script -- io.stdout:write(1000+100+10+1, "\n")' 2>&1 | FileCheck %s
# RUN: %lldb --script-language lua -o 'script --language default -- io.stdout:write(1000+100+10+1, "\n")' 2>&1 | FileCheck %s
-# REQUIRES: lua
# RUN: mkdir -p %t
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t/foo
# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t/bar
-# REQUIRES: lua
# RUN: %lldb -s %s --script-language lua 2>&1 | FileCheck %s
script
do
-# REQUIRES: lua
# RUN: %lldb --script-language lua -o 'script foo = 1010' -o 'script bar = 101' -o 'script print(foo+bar)' 2>&1 | FileCheck %s
# CHECK: 1111
-# REQUIRES: lua
# UNSUPPORTED: lldb-repro
#
# RUN: rm -rf %t.stderr %t.stdout
-# REQUIRES: lua
# UNSUPPORTED: lldb-repro
#
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
-# REQUIRES: lua
# XFAIL: system-netbsd
# RUN: echo "int main() { int val = 1; val++; return 0; }" | %clang_host -x c - -g -o %t
# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
-# REQUIRES: python
-
# RUN: rm -rf %t && mkdir -p %t
# RUN: echo "print('Rene Magritte')" >> %t/foo.py
# RUN: echo "print('Jan van Eyck')" >> %t/foo-bar.py
-# REQUIRES: python
-
# RUN: rm -rf %t && mkdir -p %t/foo/bar/baz
# RUN: split-file %S/Inputs/relative.split %t/foo
# RUN: split-file %S/Inputs/hello.split %t/foo/bar
-# REQUIRES: python
# UNSUPPORTED: lldb-repro
#
# RUN: %lldb -s %s --script-language python 2>&1 | FileCheck %s
-# REQUIRES: python
# RUN: %lldb --script-language python -o 'script print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
# RUN: %lldb --script-language python -o 'script -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
# RUN: %lldb --script-language python -o 'script --language default -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
-# REQUIRES: python
# UNSUPPORTED: lldb-repro
#
# Test that the SBAddress properties throw an exception when used outside of
-# REQUIRES: python
# UNSUPPORTED: lldb-repro
#
# Test that the scripting language argument to "breakpoint command" is honored
-# REQUIRES: python
-
# RUN: rm -rf %t && mkdir -p %t
# RUN: echo "print('Rene Magritte')" >> %t/foo.py