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