]> granicus.if.org Git - esp-idf/commitdiff
ci: test relink on template included file change
authorRenz Christian Bagaporo <renz@espressif.com>
Thu, 20 Dec 2018 01:30:01 +0000 (09:30 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 14 Feb 2019 10:58:48 +0000 (18:58 +0800)
tools/ci/test_build_system.sh
tools/ci/test_build_system_cmake.sh

index 99da318d61c6f91acb2ce3ef2aba3a4b16263bec..4c49de625fc988aef982e0c546aeba10f84b46e5 100755 (executable)
@@ -171,6 +171,13 @@ function run_tests()
     assert_rebuilt ${APP_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"
     make
     take_build_snapshot
index 3fb5cb103ddd5b32aaac36b71e0a9ef5ceebaf1d..48ef8c18571f84e2f884d4c42dfd46fa1a82a19f 100755 (executable)
@@ -186,6 +186,16 @@ function run_tests()
     assert_not_rebuilt ${BOOTLOADER_BINS}
     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"
     clean_build_dir
     idf.py build