mirror of
https://github.com/lupyuen/nuttx-riscv64.git
synced 2025-01-12 15:18:29 +08:00
Validate all defconfig files
This commit is contained in:
parent
3c47c107d2
commit
78571275e8
1 changed files with 14 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue