]> granicus.if.org Git - esp-idf/commitdiff
tools/ci: add test case for convert_to_cmake script
authorMahavir Jain <mahavir@espressif.com>
Mon, 5 Nov 2018 10:30:50 +0000 (16:00 +0530)
committerMahavir Jain <mahavir@espressif.com>
Thu, 29 Nov 2018 09:45:13 +0000 (15:15 +0530)
Following issue was already fixed with earlier commit-id f4cfca4353da66be88d04adf059d8d37f1c95b11
Here additional build test case is added and marking issue as closed.

Closes: https://github.com/espressif/esp-idf/issues/2660
tools/ci/test_build_system_cmake.sh

index 1a73c16e635792632e561d64fc83f8b408f08563..7f138d56110ef958cd1ac296ad284b0f810b54ba 100755 (executable)
@@ -258,6 +258,14 @@ function run_tests()
     mv ${IDF_PATH}/components/esp32/toolchain-esp32.cmake ${IDF_PATH}/tools/cmake/
     assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN}
 
+    print_status "Can build with auto generated CMakeLists.txt"
+    clean_build_dir
+    mv CMakeLists.txt CMakeLists.bak
+    ${IDF_PATH}/tools/cmake/convert_to_cmake.py .
+    idf.py build || failure "Auto generated CMakeLists.txt build failed"
+    mv CMakeLists.bak CMakeLists.txt
+    assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN}
+
     print_status "All tests completed"
     if [ -n "${FAILURES}" ]; then
         echo "Some failures were detected:"