mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: test relink on template included file change
This commit is contained in:
parent
acd0be8239
commit
50e860fe8c
@ -171,6 +171,13 @@ function run_tests()
|
|||||||
assert_rebuilt ${APP_BINS}
|
assert_rebuilt ${APP_BINS}
|
||||||
assert_not_rebuilt ${BOOTLOADER_BINS}
|
assert_not_rebuilt ${BOOTLOADER_BINS}
|
||||||
|
|
||||||
|
print_status "Touching linker script included in template should re-link app"
|
||||||
|
take_build_snapshot
|
||||||
|
touch ${IDF_PATH}/components/esp32/ld/esp32.spiram.rom-functions-iram.ld
|
||||||
|
make
|
||||||
|
assert_rebuilt ${APP_BINS}
|
||||||
|
assert_not_rebuilt ${BOOTLOADER_BINS}
|
||||||
|
|
||||||
print_status "sdkconfig update triggers full recompile"
|
print_status "sdkconfig update triggers full recompile"
|
||||||
make
|
make
|
||||||
take_build_snapshot
|
take_build_snapshot
|
||||||
|
@ -186,6 +186,16 @@ function run_tests()
|
|||||||
assert_not_rebuilt ${BOOTLOADER_BINS}
|
assert_not_rebuilt ${BOOTLOADER_BINS}
|
||||||
mv esp32_fragments.lf ${IDF_PATH}/components/esp32/ld/
|
mv esp32_fragments.lf ${IDF_PATH}/components/esp32/ld/
|
||||||
|
|
||||||
|
print_status "Updating linker script included in template should re-link app"
|
||||||
|
take_build_snapshot
|
||||||
|
cp ${IDF_PATH}/components/esp32/ld/esp32.spiram.rom-functions-iram.ld .
|
||||||
|
sleep 1 # ninja may ignore if the timestamp delta is too low
|
||||||
|
echo "/* (Build test comment) */" >> ${IDF_PATH}/components/esp32/ld/esp32.spiram.rom-functions-iram.ld
|
||||||
|
idf.py build || failure "Failed to build with modified linker script included in template"
|
||||||
|
assert_rebuilt ${APP_BINS}
|
||||||
|
assert_not_rebuilt ${BOOTLOADER_BINS}
|
||||||
|
mv esp32.spiram.rom-functions-iram.ld ${IDF_PATH}/components/esp32/ld/
|
||||||
|
|
||||||
print_status "sdkconfig update triggers full recompile"
|
print_status "sdkconfig update triggers full recompile"
|
||||||
clean_build_dir
|
clean_build_dir
|
||||||
idf.py build
|
idf.py build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user