ci: test idf_build_process defaults set properly
This commit is contained in:
parent
bf1394eeb8
commit
948795265d
1 changed files with 14 additions and 0 deletions
|
@ -592,6 +592,20 @@ endmenu\n" >> ${IDF_PATH}/Kconfig;
|
||||||
|| failure "Version on worktree should have been properly resolved"
|
|| failure "Version on worktree should have been properly resolved"
|
||||||
git worktree remove ../esp-idf-template-test
|
git worktree remove ../esp-idf-template-test
|
||||||
|
|
||||||
|
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"
|
print_status "All tests completed"
|
||||||
if [ -n "${FAILURES}" ]; then
|
if [ -n "${FAILURES}" ]; then
|
||||||
echo "Some failures were detected:"
|
echo "Some failures were detected:"
|
||||||
|
|
Loading…
Reference in a new issue