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