Back to Esp Idf

README

tools/test_apps/storage/std_filesystem/README.md

6.1-dev7.5 KB
Original Source
Supported TargetsESP32ESP32-C3

This is a test app which verifies that std::filesystem features work in ESP-IDF. The tests are written using Catch2 managed component.

To run the tests:

shell
idf.py flash monitor

Or, in QEMU:

shell
idf.py qemu monitor

Or, using pytest:

shell
idf.py build
pytest --embedded-services idf,qemu --target esp32 --ignore managed_components

Feature Support

Please update _cplusplus_filesystem section in cplusplus.rst when modifying this table.

FeatureSupportedTestedComment
absoluteyy
canonicalyy
weakly_canonicalyy
relativeyy
proximateyy
copyyythis function has complex behavior, not sure about test coverage
copy_fileyy
copy_symlinknnsymlinks are not supported
create_directoryyy
create_directoriesyy
create_hard_linknnhard links are not supported
create_symlinknnsymlinks are not supported
create_directory_symlinknnsymlinks are not supported
current_pathpartialysetting path is not supported in IDF
existsyy
equivalentyy
file_sizeyy
hard_link_countnnhard links are not supported
last_write_timeyy
permissionspartialysetting permissions is not supported
read_symlinknnsymlinks are not supported
removeyy
remove_allyy
renameyy
resize_filenydoesn't work, toolchain has to be built with _GLIBCXX_HAVE_TRUNCATE
spacenydoesn't work, toolchain has to be built with _GLIBCXX_HAVE_SYS_STATVFS_H and statvfs function must be defined
statusyy
symlink_statusnnsymlinks are not supported
temp_directory_pathyyworks if /tmp directory has been mounted
directory_iteratoryy
recursive_directory_iteratoryy
is_block_fileyy
is_character_fileyy
is_directoryyy
is_emptyyy
is_fifoyy
is_othernn
is_regular_fileyy
is_socketyy
is_symlinkyy