run lldb tests

This commit is contained in:
Li Jie
2024-09-19 10:57:11 +08:00
parent 7c535ff1a3
commit 36b2026075
2 changed files with 372 additions and 0 deletions

9
_lldbtest/runmain.lldb Normal file
View File

@@ -0,0 +1,9 @@
# LLDB can't be load from Python 3.12, should load Python script by lldb command
# See https://github.com/llvm/llvm-project/issues/70453
# go run ./cmd/llgo build -o cl/_testdata/debug/out -dbg ./cl/_testdata/debug
# lldb -S _lldbtest/runmain.lldb
command script import _lldbtest/main.py
script main.run_tests("cl/_testdata/debug/out", ["cl/_testdata/debug/in.go"], True, True, None)
quit