]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe-selftest: devtool ide-sdk: add test for ide=none LLDB/clang support master
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Tue, 4 Aug 2026 11:59:38 +0000 (13:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Aug 2026 10:42:22 +0000 (11:42 +0100)
commitdbeef84da24f3a9ce200e87ef46b446805bae212
treea465142b8e939dc66e1fa543fa49aec1628ff9bc
parente6290f191e85ddc7f1d961329e4f4caf94b5e944
oe-selftest: devtool ide-sdk: add test for ide=none LLDB/clang support

Add test_devtool_ide_sdk_none_cmake_clang to DevtoolIdeSdkTests to
exercise the new LldbServerConfigNone code path in ide_none.py.

The test uses the cmake-example-clang recipe (TOOLCHAIN = "clang") and
runs devtool ide-sdk with --ide=none.  It verifies:

- lldb_server_<port>_<binary>_multi script is generated
- lldbinit/lldbinit_<port>_<binary> init file is generated
- lldb_<port>_<binary> wrapper script is generated
- No gdbserver_* script is generated for a clang recipe
- The install_and_deploy script exists
- The oe-scripts symlink inside the source tree is valid
- lldb-server can be started on the target via the generated script
- The pid file written by the start script references the live process
- An lldb --batch session using the generated wrapper reaches main and
  can evaluate CppExample::test_string at the breakpoint
- lldb-server stops cleanly via the generated stop script

A new helper _lldb_none_debugging_multi is added alongside the
existing _gdb_cross_debugging_multi, following the same structure.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/selftest/cases/devtool.py