mirror of
https://github.com/lupyuen/nuttx-riscv64.git
synced 2025-01-12 15:18:29 +08:00
34 lines
1.1 KiB
Bash
Executable file
34 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Validate all defconfig files:
|
|
# git clone https://github.com/apache/nuttx
|
|
# git clone https://github.com/apache/nuttx-apps apps
|
|
# cd nuttx
|
|
# distclean
|
|
# check_config.sh
|
|
|
|
# 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
|
|
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
|
|
|
|
# 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
|
|
else
|
|
echo TODO: dotest $line
|
|
fi
|
|
done
|
|
done
|