Commit 57abbf7e authored by COULAUD Olivier's avatar COULAUD Olivier

Merge branch 'devel' of gitlab.inria.fr:solverstack/ScalFMM into devel

parents 70b15653 bc3cdf17
......@@ -35,29 +35,7 @@ test:
#- scalfmm-cppcheck.xml
- scalfmm-rats.xml
script:
- cd Build && cmake ..
-DSCALFMM_USE_LOG=ON
-DSCALFMM_USE_ASSERT=ON
-DSCALFMM_USE_SSE=OFF
-DSCALFMM_USE_BLAS=ON
-DSCALFMM_USE_FFT=ON
-DSCALFMM_USE_MPI=ON
-DSCALFMM_BUILD_EXAMPLES=ON
-DSCALFMM_BUILD_TESTS=ON
-DSCALFMM_BUILD_UTESTS=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_CXX_FLAGS="-O0 -g -fPIC --coverage -Wall -fdiagnostics-show-option -fno-inline"
-DCMAKE_EXE_LINKER_FLAGS="--coverage"
-DCMAKE_C_COMPILER=gcc-6
-DCMAKE_CXX_COMPILER=g++-6
- make -j8 | tee ../scalfmm-build.log
- OMP_NUM_THREADS=8 ctest -V
- cd ..
- lcov --directory . --capture --output-file scalfmm.lcov
- lcov_cobertura.py scalfmm.lcov --output scalfmm-coverage.xml
- export SOURCES_TO_ANALYZE="Examples Src Tests UTests"
#- cppcheck -v -f --language=c++ --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem -IBuild/Src ${SOURCES_TO_ANALYZE} 2> scalfmm-cppcheck.xml
- rats -w 3 --xml ${SOURCES_TO_ANALYZE} > scalfmm-rats.xml
- source ./Utils/scripts/analysis.sh
sonar:
stage: sonar
......
......@@ -810,6 +810,10 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/morse/
string(STRIP ${lib_var} lib_var)
LIST(APPEND SCALFMM_COMPILE_LIBS ${lib_var})
endforeach()
string(REPLACE " " ";" SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES}")
string(REPLACE ";;" ";" SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES}")
string(REPLACE " " ";" SCALFMM_INCLUDES "${SCALFMM_INCLUDES}")
string(REPLACE ";;" ";" SCALFMM_INCLUDES "${SCALFMM_INCLUDES}")
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Src/ScalFmmConfig.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/Src/ScalFmmConfig.h )
#
......
......@@ -13,7 +13,7 @@
#include "FGroupOfCells.hpp"
#include "FGroupOfParticles.hpp"
#include "FGroupAttachedLeaf.hpp"
#include "../../Src/Kernels/P2P/FP2PParticleContainer.hpp"
#include "../../Kernels/P2P/FP2PParticleContainer.hpp"
......
#!/bin/bash
# Performs an analysis of ScalFMM source code
# We consider to be in ScalFMM's source code root
# build with proper options
cd Build && cmake .. -DSCALFMM_USE_LOG=ON -DSCALFMM_USE_ASSERT=ON -DSCALFMM_USE_SSE=OFF -DSCALFMM_USE_BLAS=ON -DSCALFMM_USE_FFT=ON -DSCALFMM_USE_MPI=ON -DSCALFMM_BUILD_EXAMPLES=ON -DSCALFMM_BUILD_TESTS=ON -DSCALFMM_BUILD_UTESTS=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_FLAGS="-O0 -g -fPIC --coverage -Wall -fdiagnostics-show-option -fno-inline" -DCMAKE_EXE_LINKER_FLAGS="--coverage" -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6
make -j8 | tee ../scalfmm-build.log
# run tests
OMP_NUM_THREADS=8 ctest -V
cd ..
# capture coverage
lcov --directory . --capture --output-file scalfmm.lcov
lcov_cobertura.py scalfmm.lcov --output scalfmm-coverage.xml
# filter sources:
export SOURCES_TO_ANALYZE="Build/Src/ScalFmmConfig.h Examples Src Tests UTests"
# run cppcheck analysis
# commented for now because too long
# cppcheck -v -f --language=c++ --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem -IBuild/Src ${SOURCES_TO_ANALYZE} 2> scalfmm-cppcheck.xml
# run rats analysis
rats -w 3 --xml ${SOURCES_TO_ANALYZE} > scalfmm-rats.xml
# create the sonarqube config file
cat > sonar-project.properties << EOF
sonar.host.url=https://hpclib-sed.bordeaux.inria.fr/sonarqube-dev
sonar.links.homepage=https://gitlab.inria.fr/solverstack/ScalFMM
sonar.links.scm=https://fpruvost@gitlab.inria.fr/solverstack/ScalFMM.git
sonar.links.issue=https://gitlab.inria.fr/solverstack/ScalFMM/issues
sonar.projectKey=scalfmm
sonar.projectName=Scalfmm
sonar.projectDescription=C++ library that implements a kernel independent Fast Multipole Method (LGPL+CeCILL-C)
sonar.projectVersion=devel
sonar.language=c++
sonar.sources=Build/Src/ScalFmmConfig.h, Examples, Src, Tests, UTests
sonar.exclusions=Src/Kernels/FKernelConcepts.hpp, Tests/noDist/PerfTest/TestDriver.hpp
sonar.sourceEncoding=UTF-8
sonar.cxx.compiler.charset=UTF-8
sonar.cxx.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$
sonar.cxx.compiler.reportPath=scalfmm-build.log
sonar.cxx.coverage.reportPath=scalfmm-coverage.xml
#sonar.cxx.cppcheck.reportPath=scalfmm-cppcheck.xml
sonar.cxx.rats.reportPath=scalfmm-rats.xml
EOF
......@@ -8,8 +8,8 @@ sonar.projectDescription=C++ library that implements a kernel independent Fast M
sonar.projectVersion=devel
sonar.language=c++
sonar.sources=Examples, Src, Tests, UTests
sonar.exclusions=Src/Kernels/FKernelConcepts.hpp, Tests/noDist/PerfTest/TestDriver.hpp
sonar.sourceEncoding=UTF-8
sonar.cxx.includeDirectories=./Src/Core/, ./Src/Containers/, ./Src/Kernels/Interpolation/, ./Src/Kernels/P2P/, ./Src/Kernels/Taylor/, ./Src/Kernels/Chebyshev/, ./Src/Kernels/Spherical/, ./Src/Kernels/Rotation/, ./Src/Kernels/Uniform/, ./Src/Files/, ./Src/Arranger/, ./Src/BalanceTree/, ./Src/Utils/, ./Src/GroupTree/TestKernel/, ./Src/GroupTree/P2P/, ./Src/GroupTree/Core/, ./Src/GroupTree/StarPUUtils/, ./Src/GroupTree/Chebyshev/, ./Src/GroupTree/Cuda/, ./Src/GroupTree/Rotation/, ./Src/GroupTree/Uniform/, ./Src/GroupTree/OpenCl/, ./Src/Extensions/, ./Src/Components/, ./UTests/, ./Addons/CKernelApi/Src/, /usr/include/starpu/1.1, /usr/lib/openmpi/include, /usr/include, /usr/include/x86_64-linux-gnu, /usr/lib/gcc/x86_64-linux-gnu/5/include
sonar.cxx.compiler.charset=UTF-8
sonar.cxx.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$
sonar.cxx.compiler.reportPath=scalfmm-build.log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment