ci: add test for component override features
This commit is contained in:
parent
bd55cdff02
commit
9950c7f21d
1 changed files with 13 additions and 0 deletions
|
@ -743,6 +743,19 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
||||||
rm -rf build
|
rm -rf build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
print_status "Getting component overriden dir"
|
||||||
|
clean_build_dir
|
||||||
|
mkdir -p components/esp32
|
||||||
|
echo "idf_component_get_property(overriden_dir \${COMPONENT_NAME} COMPONENT_OVERRIDEN_DIR)" >> components/esp32/CMakeLists.txt
|
||||||
|
echo "message(STATUS overriden_dir:\${overriden_dir})" >> components/esp32/CMakeLists.txt
|
||||||
|
(idf.py reconfigure | grep "overriden_dir:$IDF_PATH/components/esp32") || failure "Failed to get overriden dir" # no registration, overrides registration as well
|
||||||
|
print_status "Overriding Kconfig"
|
||||||
|
echo "idf_component_register(KCONFIG \${overriden_dir}/Kconfig)" >> components/esp32/CMakeLists.txt
|
||||||
|
echo "idf_component_get_property(kconfig \${COMPONENT_NAME} KCONFIG)" >> components/esp32/CMakeLists.txt
|
||||||
|
echo "message(STATUS kconfig:\${overriden_dir}/Kconfig)" >> components/esp32/CMakeLists.txt
|
||||||
|
(idf.py reconfigure | grep "kconfig:$IDF_PATH/components/esp32/Kconfig") || failure "Failed to verify original `main` directory"
|
||||||
|
rm -rf components
|
||||||
|
|
||||||
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