brintos

brintos / llvm-project-archived public Read only

0
0
Text · 815 B · 719e711 Raw
13 lines · plain
1# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/testmodule.lua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s2# CHECK: Hello World!3 4# RUN: mkdir -p %t5# RUN: cp %S/Inputs/testmodule.lua %t/testmodule.notlua6# RUN: %lldb --script-language lua -o 'command script import %t/testmodule.notlua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix EXTENSION7# EXTENSION: error: module importing failed: lua failed to import '{{.*}}testmodule.notlua': invalid extension8# EXTENSION-NOT: Hello World!9 10# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/bogus' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix NONEXISTING11# NONEXISTING: error: module importing failed: lua failed to import '{{.*}}bogus': invalid path12# NONEXISTING-NOT: Hello World!13