Validate all defconfig files

This commit is contained in:
Lup Yuen Lee 2024-10-15 14:00:31 +08:00
parent 3c47c107d2
commit 78571275e8

View file

@ -9,25 +9,26 @@
# Derived from https://github.com/apache/nuttx/blob/master/tools/testbuild.sh
set -e # Exit when any command fails
for testfile in tools/ci/testlist/*.dat; do
echo Validating targets in $testfile...
testlist=`grep -v -E "^(-|#)|^[C|c][M|m][A|a][K|k][E|e]" $testfile || true`
echo testlist=$testlist
for line in $testlist; do
echo Validating targets in $testfile...
testlist=`grep -v -E "^(-|#)|^[C|c][M|m][A|a][K|k][E|e]" $testfile || true`
echo testlist=$testlist
for line in $testlist; do
firstch=${line:0:1}
if [ "X$firstch" == "X/" ]; then
dir=`echo $line | cut -d',' -f1`
# echo "***** dir=$dir"
# echo "***** find boards$dir -name defconfig" && find boards$dir -name defconfig
dir=`echo $line | cut -d',' -f1`
# echo "***** dir=$dir"
# echo "***** find boards$dir -name defconfig" && find boards$dir -name defconfig
# i looks like "nucleo-f303ze/adc"
list=`find boards$dir -name defconfig | cut -d'/' -f4,6`
for i in ${list}; do
# i looks like "nucleo-f303ze/adc"
list=`find boards$dir -name defconfig | cut -d'/' -f4,6`
for i in ${list}; do
echo ./tools/refresh.sh --silent $i
./tools/refresh.sh --silent $i
# Previously: dotest $i${line/"$dir"/}
done
done
else
echo dotest $line
echo TODO: dotest $line
fi
done
done
done