فهرست منبع

build system tests: Add test case for sdkconfig-triggered recompilation

Angus Gratton 9 سال پیش
والد
کامیت
4f637034e8
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      make/test_build_system.sh

+ 11 - 0
make/test_build_system.sh

@@ -155,6 +155,17 @@ function run_tests()
     assert_rebuilt ${APP_BINS}
     assert_not_rebuilt ${BOOTLOADER_BINS}
 
+    print_status "sdkconfig update triggers recompiles"
+    make
+    take_build_snapshot
+    touch sdkconfig
+    make
+    # pick one each of .c, .cpp, .S that #includes sdkconfig.h
+    # and therefore should rebuild
+    assert_rebuilt newlib/syscall_table.o
+    assert_rebuilt nvs_flash/src/nvs_api.o
+    assert_rebuilt freertos/xtensa_vectors.o
+
     print_status "All tests completed"
     if [ -n "${FAILURES}" ]; then
         echo "Some failures were detected:"