From a716442c72a9a0f41a2d2a78f0270261e71db605 Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Mon, 4 May 2020 20:56:40 +0800 Subject: [PATCH] ci: test idf_build_process defaults set properly --- tools/ci/test_build_system_cmake.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 13706da097..d0ff134cd3 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -655,6 +655,20 @@ endmenu\n" >> ${IDF_PATH}/Kconfig rm idf_project.yml git checkout main/main.c + print_status "Defaults set properly for unspecified idf_build_process args" + pushd . + cd $IDF_PATH/examples/build_system/cmake/idf_as_lib + cp CMakeLists.txt CMakeLists.txt.bak + echo -e "\nidf_build_get_property(project_dir PROJECT_DIR)" >> CMakeLists.txt + echo -e "\nmessage(\"Project directory: \${project_dir}\")" >> CMakeLists.txt + mkdir build && cd build + cmake .. -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake -DTARGET=esp32 &> log.txt + grep "Project directory: $IDF_PATH/examples/build_system/cmake/idf_as_lib" log.txt || failure "PROJECT_DIR default was not set" + cd .. + mv CMakeLists.txt.bak CMakeLists.txt + rm -rf build + popd + print_status "All tests completed" if [ -n "${FAILURES}" ]; then echo "Some failures were detected:"