INNER CODE UNIT · C

PATH

schwabe/ics-openvpn · runcoverity.sh:2

export PATH=$PATH:/Applications/cov-analysis-macosx-2021.03/bin

if [ -z "${COVERITY_CONNECT_HOST}" ]; then
    echo  COVERITY_CONNECT_HOST not set
    exit 1
fi

cov-configure --config .coverity/cfg.xml --clang
cov-configure --config .coverity/cfg.xml --android
cov-configure --config .coverity/cfg.xml --kotlin
cov-configure --config .coverity/cfg.xml --java

./gradlew -b build.gradle.kts --no-daemon clean
# Coverity needs the --fs-capture-search  for Kotlin according to https://community.synopsys.com/s/article/How-to-analyze-Kotlin-project
cov-build --fs-capture-search main/src --dir .coverity/idir --config .coverity/cfg.xml  ./gradlew -b build.gradle.kts --no-daemon assembleUiOvpn23Release

NDK_VER=${NDK_VER:-28.2.13676358}
cov-analyze --dir .coverity/idir --all --strip-path ${PWD}/main/src/main/cpp --strip-path ${PWD}/main/src --strip-path ${PWD} --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/linux-x86_64/sysroot

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…