From 7f2d20a17d126fa13a8ca9afc4f6fac7aeee54a8 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Mon, 18 Sep 2017 16:37:37 +0200 Subject: [PATCH] test if cblas/lapacke.h files are in sources ... --- tools/analysis.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/analysis.sh b/tools/analysis.sh index 8490dc926..2c37d0608 100755 --- a/tools/analysis.sh +++ b/tools/analysis.sh @@ -28,8 +28,11 @@ lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml export SOURCES_TO_ANALYZE=`bash -c 'find ./build -type d -name CMakeFiles -prune -o -type d -name Testing -prune -o -type f -regex ".*\.c\|.*\.h" -print && \ find . -path ./build -prune -o -type f -regex "^[^z]*\.c" -print && \ find . -path ./build -prune -o -type f -regex "^[^z]*\.h" ! -name 'lapacke*.h' ! -name 'cblas*.h' -print | xargs'` +echo $SOURCES_TO_ANALYZE |grep cblas +echo $SOURCES_TO_ANALYZE |grep lapacke + # Undefine this because not relevant in our configuration -export UNDEFINITIONS="-UCHAMELEON_USE_CUBLAS_V2 -UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun" +export UNDEFINITIONS="-UCHAMELEON_USE_CUBLAS_V2 -UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun __cplusplus" # run cppcheck analysis cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} ${SOURCES_TO_ANALYZE} 2> chameleon-cppcheck.xml # run rats analysis -- GitLab