mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
Remove BM_ prefix, drop application loop benchmark, fix core includes
- Remove BM_ prefix from all benchmark names (unnecessary convention) - Remove bench_application_loop.cpp (App needs pre_setup/setup which requires full code generation; will revisit as integration benchmark) - Fix extra_include_dirs to use os.path.relpath for sibling directories
This commit is contained in:
@@ -356,13 +356,9 @@ def build_and_run(
|
||||
if extra_include_dirs:
|
||||
for d in extra_include_dirs:
|
||||
if d.is_dir() and (any(d.glob("*.cpp")) or any(d.glob("*.h"))):
|
||||
# Use path relative to tests_dir for PlatformIO includes
|
||||
try:
|
||||
rel = d.relative_to(tests_dir)
|
||||
includes.append(str(rel))
|
||||
except ValueError:
|
||||
# Not relative to tests_dir, use absolute
|
||||
includes.append(str(d))
|
||||
# ESPHome includes are relative to the config directory (tests_dir)
|
||||
rel = os.path.relpath(d, tests_dir)
|
||||
includes.append(rel)
|
||||
|
||||
# Discover platform sub-components
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user