mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Add missing Zephyr project files in tests for PIO Check
This commit is contained in:
@ -540,6 +540,16 @@ int main() {
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if framework == "zephyr":
|
||||||
|
zephyr_dir = tmpdir.mkdir("zephyr")
|
||||||
|
zephyr_dir.join("prj.conf").write("# nothing here")
|
||||||
|
zephyr_dir.join("CMakeLists.txt").write(
|
||||||
|
"""cmake_minimum_required(VERSION 3.16.0)
|
||||||
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
project(hello_world)
|
||||||
|
target_sources(app PRIVATE ../src/main.c)"""
|
||||||
|
)
|
||||||
|
|
||||||
tmpdir.join("platformio.ini").write(config)
|
tmpdir.join("platformio.ini").write(config)
|
||||||
result = clirunner.invoke(cmd_check, ["--project-dir", str(tmpdir)])
|
result = clirunner.invoke(cmd_check, ["--project-dir", str(tmpdir)])
|
||||||
validate_cliresult(result)
|
validate_cliresult(result)
|
||||||
|
Reference in New Issue
Block a user