aboutsummaryrefslogtreecommitdiff
path: root/.azure-pipelines.yml
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-04-11 13:20:00 -0400
committerTom Rini <trini@konsulko.com>2022-04-15 08:09:16 -0400
commit239fe55a6ce516f329687c0680428ca2acfc73ca (patch)
tree6bfbc93a2f254a19f93d463eb79f6c6c3df156a3 /.azure-pipelines.yml
parent74ae732d80f54540d3a244e0e28e66d263e6a57e (diff)
downloadu-boot-239fe55a6ce516f329687c0680428ca2acfc73ca.zip
u-boot-239fe55a6ce516f329687c0680428ca2acfc73ca.tar.gz
u-boot-239fe55a6ce516f329687c0680428ca2acfc73ca.tar.bz2
CI: Print out unmigrated symbols when failing
To make addressing the problem of migrated symbols being present in board config header files, update the CI test to them print what symbols are causing it to fail. Also report all failures in the tree, rather than stopping at the first failing file. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to '.azure-pipelines.yml')
-rw-r--r--.azure-pipelines.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 314d277..ec77c7a 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -63,6 +63,7 @@ stages:
- script: |
KSYMLST=`mktemp`
KUSEDLST=`mktemp`
+ RET=0
cat `find . -name "Kconfig*"` | \
sed -n -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
-e 's/^\s*menuconfig *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
@@ -76,10 +77,12 @@ stages:
NUM=`comm -123 --total --output-delimiter=, ${KSYMLST} ${KUSEDLST} | \
cut -d , -f 3`
if [[ $NUM -ne 0 ]]; then
- echo "Unmigrated symbols found in $CFG"
- exit 1
+ echo "Unmigrated symbols found in $CFG:"
+ comm -12 ${KSYMLST} ${KUSEDLST}
+ RET=1
fi
done
+ exit $RET
- job: cppcheck
displayName: 'Static code analysis with cppcheck'