]> granicus.if.org Git - esp-idf/commitdiff
tools/test_build_system: Add tests with long IDF_VER
authorKonstantinKondrashov <konstantin@espressif.com>
Wed, 13 Mar 2019 12:43:33 +0000 (20:43 +0800)
committerKonstantinKondrashov <konstantin@espressif.com>
Wed, 13 Mar 2019 12:43:33 +0000 (20:43 +0800)
tools/ci/test_build_system.sh
tools/ci/test_build_system_cmake.sh

index 91c7e85df5a273af9b52e5707797f2e0cf35e690..0915f2376852a8a89f2047bf8cc1151b48307ef4 100755 (executable)
@@ -223,7 +223,7 @@ function run_tests()
     print_status "Can build without git installed on system"
     clean_build_dir
     # Make provision for getting IDF version
-    echo "custom-version-x.y" > ${IDF_PATH}/version.txt
+    echo "IDF_VER_0123456789_0123456789_0123456789" > ${IDF_PATH}/version.txt
     echo "project-version-w.z" > ${TESTDIR}/template/version.txt
     # Hide .gitmodules so that submodule check is avoided
     [ -f ${IDF_PATH}/.gitmodules ] && mv ${IDF_PATH}/.gitmodules ${IDF_PATH}/.gitmodules_backup
index 3dd1bea577dd54f31b1ea0a927781b124782b8a4..ae6bbd5baa66df8893207d689c87765b6235468e 100755 (executable)
@@ -99,6 +99,7 @@ function run_tests()
     print_status "Rebuild when app version was changed"
     clean_build_dir
     # App version
+    echo "IDF_VER_0123456789_0123456789_0123456789" > ${IDF_PATH}/version.txt
     echo "project-version-1.0" > ${TESTDIR}/template/version.txt
     idf.py build || failure "Failed to build with app version"
     print_status "Change app version"
@@ -112,6 +113,7 @@ function run_tests()
     take_build_snapshot
     idf.py build
     assert_not_rebuilt ${APP_BINS} ${BOOTLOADER_BINS} esp-idf/esp32/libesp32.a
+    rm -f ${IDF_PATH}/version.txt
     rm -f ${TESTDIR}/template/version.txt
 
     print_status "Get the version of app from git describe. Project is not inside IDF and do not have a tag only a hash commit."