You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
572b9f468a
Implements the command script import command for Lua. Differential revision: https://reviews.llvm.org/D71825
14 lines
831 B
Plaintext
14 lines
831 B
Plaintext
# 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!
|
|
|
|
# RUN: mkdir -p %t
|
|
# RUN: cp %S/Inputs/testmodule.lua %t/testmodule.notlua
|
|
# RUN: %lldb --script-language lua -o 'command script import %t/testmodule.notlua' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix EXTENSION
|
|
# EXTENSION: error: module importing failed: lua failed to import '{{.*}}testmodule.notlua': invalid extension
|
|
# EXTENSION-NOT: Hello World!
|
|
|
|
# RUN: %lldb --script-language lua -o 'command script import %S/Inputs/bogus' -o 'script testmodule.foo()' 2>&1 | FileCheck %s --check-prefix NONEXISTING
|
|
# NONEXISTING: error: module importing failed: lua failed to import '{{.*}}bogus': invalid path
|
|
# NONEXISTING-NOT: Hello World!
|