-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check-config.sh
executable file
·34 lines (31 loc) · 1.05 KB
/
check-config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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