tools/testbuild.sh: Don't skip configure and distclean

to improve the test coverage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-29 22:34:10 +08:00 committed by Petro Karashchenko
parent 5db447623d
commit 05ff19d17b

View File

@ -257,6 +257,10 @@ function build {
xargs -I "{}" cp "{}" $artifactconfigdir < $nuttx/nuttx.manifest
fi
return $fail
}
function refresh {
# Ensure defconfig in the canonical form
if ! ./tools/refresh.sh --silent $config; then
@ -300,10 +304,11 @@ function dotest {
config=`echo $1 | cut -d',' -f1`
check=${HOST},${config/\//:}
skip=0
for re in $blacklist; do
if [[ "${check}" =~ ${re:1}$ ]]; then
echo "Skipping: $1"
return
skip=1
fi
done
@ -346,8 +351,11 @@ function dotest {
echo "------------------------------------------------------------------------------------"
distclean
configure
build
run
if [ ${skip} -ne 1 ]; then
build
run
fi
refresh
}
# Perform the build test for each entry in the test list file