2020-10-30 13:12:35 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-08-14 15:53:28 +02:00
|
|
|
|
|
|
|
# Copyright 2018 Jose Ignacio Alamos <jose.alamos@haw-hamburg.de>
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
|
|
|
|
RIOTBASE=$(git rev-parse --show-toplevel)
|
|
|
|
CURDIR=$(cd "$(dirname "$0")" && pwd)
|
|
|
|
: "${QUIET:=0}"
|
|
|
|
: "${WARNING:=1}"
|
|
|
|
|
|
|
|
. "$RIOTBASE"/dist/tools/ci/changed_files.sh
|
2021-01-05 17:15:00 +01:00
|
|
|
# tests/pkg_utensor/models/deep_mlp_weight.hpp is an auto-generated file
|
|
|
|
# with lots of commas so T009 takes very long. Since it is auto-generated, just
|
|
|
|
# exclude it.
|
|
|
|
EXCLUDE='^(.+/vendor/|dist/tools/coccinelle/include|dist/tools/fixdep/fixdep.c|dist/tools/lpc2k_pgm/src|tests/pkg_utensor/models)'
|
2020-12-17 20:48:20 +01:00
|
|
|
FILES=$(changed_files)
|
2018-08-14 15:53:28 +02:00
|
|
|
|
|
|
|
if [ -z "${FILES}" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
PARAMS=""
|
|
|
|
if [ $QUIET -eq 1 ]; then
|
|
|
|
_QUIET="--quiet"
|
|
|
|
fi
|
|
|
|
|
|
|
|
VERA_CMD="vera++ --root $CURDIR --exclusions $CURDIR/exclude $_QUIET"
|
|
|
|
|
2021-01-06 11:38:29 +01:00
|
|
|
echo "$FILES" | $VERA_CMD --profile riot \
|
|
|
|
--parameters $CURDIR/profiles/riot_params.txt -w
|