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