4 Commits

Author SHA1 Message Date
Dave Lee
b9225e8607
[lldb] Allow tests to share a single build (#181720)
This changes Python API tests to use a single build shared across all
test functions, instead of the previous default behavior of a separate
build dir for each test function.

This build behavior opt-out, tests can use the previous behavior of one
individual (unshared) build directory per test function, by setting
`SHARED_BUILD_TESTCASE` to False (in the test class).

The motivation is to make the test suite more efficient, by not
repeatedly building the same test source. When running tests on my macOS
machine, this reduces the time of `ninja check-lldb-api` by almost 60%
(sample numbers: from ~492s down to ~207s = 58%). Almost 5min time
saved.

Each test function still calls `self.build()`, but only the first call
will do a build, in the subsequent tests `make` will be a no-op because
the sources won't have changed.
2026-02-18 10:38:45 -08:00
Michael Buch
2be02dcb49 [lldb][test] TestTemplateAlias.py: skip on older Clang version
The `-g[no-]template-alias` flag is not available on older versions.
2026-01-22 13:22:17 +00:00
Michael Buch
69fbba1948 [lldb][test] TestTemplateAlias.py: skip on older Clang versions
The `-g[no-]template-alias` flag is not available on older versions.
2026-01-22 13:20:14 +00:00
Michael Buch
f53f6f7250
[lldb][test] Add basic API tests for DW_TAG_template_alias (#170804)
Basic API tests to check how template aliases are rendered by LLDB
(using both `DW_TAG_template_alias` and `DW_TAG_typedef`, with and
without `-gsimple-template-names`).
2025-12-09 07:48:20 +00:00