esp-idf/tools/test_apps/system/no_embedded_paths
Angus Gratton 9ae01e40b5 ci: Add a test app for not placing embedded file paths into binaries
Doubles as a test app that building with assertions off doesn't produce warnings.

Closes https://github.com/espressif/esp-idf/issues/6306
2021-03-03 10:31:05 +11:00
..
main ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
check_for_file_paths.py ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
CMakeLists.txt ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
README.md ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
sdkconfig.ci.noasserts ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
sdkconfig.ci.noasserts.nimble ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
sdkconfig.ci.silentasserts ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00
sdkconfig.ci.silentasserts.nimble ci: Add a test app for not placing embedded file paths into binaries 2021-03-03 10:31:05 +11:00

No Embedded Paths

This test app exists to verify that paths (like FILE) are not compiled into any object files in configurations where this should be avoided.

It doubles up as a build-time check that disabling assertions doesn't lead to any warnings.

(These configurations include: assertions disabled, 'silent' asserts, any reproducible builds configuration.)

Not embedding paths reduces the binary size, avoids leaking information about the compilation environment, and is a necessary step to supporet reproducible builds across projects built in different directories.