mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Enable the pch on esp32 via PlatformIO for CI speed
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
"""The host pch prefix must keep resolving; a rename would silently
|
||||
"""The pch prefix must keep resolving; a rename would silently
|
||||
collapse the precompiled set to defines.h with strict CI still green."""
|
||||
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
from esphome.components.host import HOST_PCH_PREFIX
|
||||
from esphome.build_helpers.pch import PCH_PREFIX_HEADER
|
||||
|
||||
REPO = Path(__file__).parents[2]
|
||||
|
||||
|
||||
def test_host_pch_prefix_resolves() -> None:
|
||||
prefix = REPO / HOST_PCH_PREFIX
|
||||
prefix = REPO / PCH_PREFIX_HEADER
|
||||
assert prefix.is_file()
|
||||
body = prefix.read_text()
|
||||
includes = re.findall(r'#include "([^"]+)"', body)
|
||||
|
||||
Reference in New Issue
Block a user