1# REQUIRES: lua 2# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/testmodule.lua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s 3# CHECK: Hello World! 4 5# RUN: mkdir -p %t 6# RUN: cp %S/Inputs/testmodule.lua %t/testmodule.notlua 7# RUN: %lldb --script-language lua -o 'command script import %t/testmodule.notlua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix EXTENSION 8# EXTENSION: error: module importing failed: lua failed to import '{{.*}}testmodule.notlua': invalid extension 9# EXTENSION-NOT: Hello World! 10 11# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/bogus' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix NONEXISTING 12# NONEXISTING: error: module importing failed: lua failed to import '{{.*}}bogus': invalid path 13# NONEXISTING-NOT: Hello World! 14