build system tests: Don't unix2dos .git files, build directories

pull/1098/head
Angus Gratton 2017-09-20 18:21:29 +10:00 zatwierdzone przez Angus Gratton
rodzic 85ce07e6fd
commit 53d12a6212
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -134,13 +134,13 @@ function run_tests()
print_status "Can still clean build if all text files are CRLFs" print_status "Can still clean build if all text files are CRLFs"
make clean || failure "Unexpected failure to make clean" make clean || failure "Unexpected failure to make clean"
find . -exec unix2dos {} \; # CRLFify template dir find . -path .git -prune -exec unix2dos {} \; # CRLFify template dir
# make a copy of esp-idf and CRLFify it # make a copy of esp-idf and CRLFify it
CRLF_ESPIDF=${TESTDIR}/esp-idf-crlf CRLF_ESPIDF=${TESTDIR}/esp-idf-crlf
mkdir -p ${CRLF_ESPIDF} mkdir -p ${CRLF_ESPIDF}
cp -r ${IDF_PATH}/* ${CRLF_ESPIDF} cp -r ${IDF_PATH}/* ${CRLF_ESPIDF}
# don't CRLFify executable files, as Linux will fail to execute them # don't CRLFify executable files, as Linux will fail to execute them
find ${CRLF_ESPIDF} -type f ! -perm 755 -exec unix2dos {} \; find ${CRLF_ESPIDF} -name .git -prune -name build -prune -type f ! -perm 755 -exec unix2dos {} \;
make IDF_PATH=${CRLF_ESPIDF} || failure "Failed to build with CRLFs in source" make IDF_PATH=${CRLF_ESPIDF} || failure "Failed to build with CRLFs in source"
# do the same checks we do for the clean build # do the same checks we do for the clean build
assert_built ${APP_BINS} ${BOOTLOADER_BINS} partitions_singleapp.bin assert_built ${APP_BINS} ${BOOTLOADER_BINS} partitions_singleapp.bin