mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
test: add test app for stdatomic functions
This commit is contained in:
19
components/newlib/test_apps/app_test.py
Normal file
19
components/newlib/test_apps/app_test.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import tiny_test_fw # noqa: F401 # pylint: disable=unused-import
|
||||
import ttfw_idf
|
||||
|
||||
try:
|
||||
import typing # noqa: F401 # pylint: disable=unused-import
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
@ttfw_idf.idf_component_unit_test(env_tag='COMPONENT_UT_GENERIC', target=['esp32', 'esp32s2', 'esp32c3'])
|
||||
def test_component_ut_newlib(env, _): # type: (tiny_test_fw.Env, typing.Any) -> None
|
||||
dut = env.get_dut('newlib', 'components/newlib/test_apps')
|
||||
dut.start_app()
|
||||
stdout = dut.expect('Tests finished, rc=0', full_stdout=True)
|
||||
ttfw_idf.ComponentUTResult.parse_result(stdout)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_component_ut_newlib()
|
Reference in New Issue
Block a user