kopia lustrzana https://github.com/espressif/esp-idf
feat(ci): add test for custom cmake CMAKE_EXECUTABLE_SUFFIX
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>release/v5.0
rodzic
7d87f56e35
commit
d587d24c43
|
@ -1027,6 +1027,15 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
||||||
rm -f sdkconfig.defaults
|
rm -f sdkconfig.defaults
|
||||||
rm -f sdkconfig
|
rm -f sdkconfig
|
||||||
|
|
||||||
|
print_status "Can build with custom CMAKE_EXECUTABLE_SUFFIX set"
|
||||||
|
clean_build_dir
|
||||||
|
# Backup original project CMakeLists.txt
|
||||||
|
cp CMakeLists.txt CMakeLists.txt.bak
|
||||||
|
echo "set(CMAKE_EXECUTABLE_SUFFIX_CXX \".ext\")" >> CMakeLists.txt
|
||||||
|
idf.py build || failure "Failed to set custom CMAKE_EXECUTABLE_SUFFIX_CXX"
|
||||||
|
# Restore original CMakeLists.txt
|
||||||
|
mv CMakeLists.txt.bak CMakeLists.txt
|
||||||
|
|
||||||
print_status "All tests completed"
|
print_status "All tests completed"
|
||||||
if [ -n "${FAILURES}" ]; then
|
if [ -n "${FAILURES}" ]; then
|
||||||
echo "Some failures were detected:"
|
echo "Some failures were detected:"
|
||||||
|
|
Ładowanie…
Reference in New Issue