mirror of
https://github.com/lupyuen/nuttx-riscv64.git
synced 2025-01-12 23:28:28 +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
|
# Derived from https://github.com/apache/nuttx/blob/master/tools/testbuild.sh
|
||||||
set -e # Exit when any command fails
|
set -e # Exit when any command fails
|
||||||
for testfile in tools/ci/testlist/*.dat; do
|
for testfile in tools/ci/testlist/*.dat; do
|
||||||
echo Validating targets in $testfile...
|
echo Validating targets in $testfile...
|
||||||
testlist=`grep -v -E "^(-|#)|^[C|c][M|m][A|a][K|k][E|e]" $testfile || true`
|
testlist=`grep -v -E "^(-|#)|^[C|c][M|m][A|a][K|k][E|e]" $testfile || true`
|
||||||
echo testlist=$testlist
|
echo testlist=$testlist
|
||||||
for line in $testlist; do
|
|
||||||
|
for line in $testlist; do
|
||||||
firstch=${line:0:1}
|
firstch=${line:0:1}
|
||||||
if [ "X$firstch" == "X/" ]; then
|
if [ "X$firstch" == "X/" ]; then
|
||||||
dir=`echo $line | cut -d',' -f1`
|
dir=`echo $line | cut -d',' -f1`
|
||||||
# echo "***** dir=$dir"
|
# echo "***** dir=$dir"
|
||||||
# echo "***** find boards$dir -name defconfig" && find boards$dir -name defconfig
|
# echo "***** find boards$dir -name defconfig" && find boards$dir -name defconfig
|
||||||
|
|
||||||
# i looks like "nucleo-f303ze/adc"
|
# i looks like "nucleo-f303ze/adc"
|
||||||
list=`find boards$dir -name defconfig | cut -d'/' -f4,6`
|
list=`find boards$dir -name defconfig | cut -d'/' -f4,6`
|
||||||
for i in ${list}; do
|
for i in ${list}; do
|
||||||
echo ./tools/refresh.sh --silent $i
|
echo ./tools/refresh.sh --silent $i
|
||||||
./tools/refresh.sh --silent $i
|
./tools/refresh.sh --silent $i
|
||||||
# Previously: dotest $i${line/"$dir"/}
|
# Previously: dotest $i${line/"$dir"/}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo dotest $line
|
echo TODO: dotest $line
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue