mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
d6b1fd56a4
Made-with: Cursor
19 lines
695 B
Python
19 lines
695 B
Python
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
import logging
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
from test_build_system_helpers import IdfPyFunc
|
|
|
|
|
|
@pytest.mark.skipif(sys.platform == 'win32', reason='Unix test')
|
|
@pytest.mark.usefixtures('test_app_copy')
|
|
def test_linux_target_build(idf_py: IdfPyFunc) -> None:
|
|
logging.info('Can build for Linux target')
|
|
idf_py('--preview', '-DIDF_TARGET=linux', 'build')
|
|
elf = Path('build/build_test_app.elf')
|
|
assert elf.exists(), 'ELF file was not produced by the Linux build'
|
|
assert elf.stat().st_size > 0, 'ELF file is empty — link step may have failed silently'
|