mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
tools/test_build_system: Add tests with long IDF_VER
This commit is contained in:
committed by
Konstantin Kondrashov
parent
cc7e91e1a3
commit
646c7a7515
@ -223,7 +223,7 @@ function run_tests()
|
|||||||
print_status "Can build without git installed on system"
|
print_status "Can build without git installed on system"
|
||||||
clean_build_dir
|
clean_build_dir
|
||||||
# Make provision for getting IDF version
|
# 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
|
echo "project-version-w.z" > ${TESTDIR}/template/version.txt
|
||||||
# Hide .gitmodules so that submodule check is avoided
|
# Hide .gitmodules so that submodule check is avoided
|
||||||
[ -f ${IDF_PATH}/.gitmodules ] && mv ${IDF_PATH}/.gitmodules ${IDF_PATH}/.gitmodules_backup
|
[ -f ${IDF_PATH}/.gitmodules ] && mv ${IDF_PATH}/.gitmodules ${IDF_PATH}/.gitmodules_backup
|
||||||
|
@ -99,6 +99,7 @@ function run_tests()
|
|||||||
print_status "Rebuild when app version was changed"
|
print_status "Rebuild when app version was changed"
|
||||||
clean_build_dir
|
clean_build_dir
|
||||||
# App version
|
# App version
|
||||||
|
echo "IDF_VER_0123456789_0123456789_0123456789" > ${IDF_PATH}/version.txt
|
||||||
echo "project-version-1.0" > ${TESTDIR}/template/version.txt
|
echo "project-version-1.0" > ${TESTDIR}/template/version.txt
|
||||||
idf.py build || failure "Failed to build with app version"
|
idf.py build || failure "Failed to build with app version"
|
||||||
print_status "Change app version"
|
print_status "Change app version"
|
||||||
@ -112,6 +113,7 @@ function run_tests()
|
|||||||
take_build_snapshot
|
take_build_snapshot
|
||||||
idf.py build
|
idf.py build
|
||||||
assert_not_rebuilt ${APP_BINS} ${BOOTLOADER_BINS} esp-idf/esp32/libesp32.a
|
assert_not_rebuilt ${APP_BINS} ${BOOTLOADER_BINS} esp-idf/esp32/libesp32.a
|
||||||
|
rm -f ${IDF_PATH}/version.txt
|
||||||
rm -f ${TESTDIR}/template/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."
|
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."
|
||||||
|
Reference in New Issue
Block a user