summaryrefslogtreecommitdiffstats
path: root/coverity
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 01:41:09 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 01:58:47 +0200
commitb8c7833e635c43a53139f338f42cea460381e39b (patch)
tree932e6e3a0c04ff57d468ff863faeaf5c82979767 /coverity
parenta7e0987f682adf7e5da1214030e5999a9818ed7c (diff)
coverity: drop the single-project coverity builds
The combined Osmocom build is able to scan across all libraries at the same time and can find more errors, making the submission of single projects for scan obsolete. Change-Id: I24c55d10b587837fe3e3ff6089715e6896c12dcf
Diffstat (limited to 'coverity')
-rwxr-xr-xcoverity/coverity_all.sh143
-rwxr-xr-xcoverity/prepare_source.sh24
2 files changed, 0 insertions, 167 deletions
diff --git a/coverity/coverity_all.sh b/coverity/coverity_all.sh
deleted file mode 100755
index 67f52c5..0000000
--- a/coverity/coverity_all.sh
+++ /dev/null
@@ -1,143 +0,0 @@
-#!/usr/bin/env bash
-
-set -e -x
-
-base_dir="$PWD"
-src_dir="$base_dir/source"
-prefix="$base_dir/install"
-
-install -d "$prefix"
-
-export PATH="$base_dir/cov-analysis-linux64-8.5.0/bin/:$PATH"
-export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
-
-do_build() {
- git clean -dxf
- git remote prune origin
- git pull --rebase -s recursive -Xtheirs
- autoreconf --install --force
- ./configure --prefix="$prefix" $*
-
- cov-build --dir cov-int make
- make install
- rm -f myproject.tgz
- tar czf myproject.tgz cov-int
-}
-
-do_upload() {
- project="$1"
- token="$("$base_dir"/get_token.sh "$base_dir"/tokens.txt $project)"
- curl \
- --form token=$token \
- --form email=holger@freyther.de --form file=@myproject.tgz \
- --form version=Version --form description=AutoUpload \
- https://scan.coverity.com/builds?project=$project
-}
-
-upload_libosmocore() {
- pushd libosmocore
-
- do_build
- do_upload libosmocore
- popd
-}
-
-upload_libosmoabis() {
- pushd libosmo-abis
-
- do_build
- do_upload libosmo-abis
- popd
-}
-
-upload_libosmosccp() {
- pushd libosmo-sccp
-
- do_build
- do_upload libosmo-sccp
- popd
-}
-
-upload_openggsn() {
- pushd openggsn
- do_build
- do_upload OpenGGSN
- popd
-}
-
-upload_openbsc() {
- pushd openbsc/openbsc
-
- do_build --enable-osmo-bsc --enable-nat --enable-smpp --enable-mgcp-transcoding
- do_upload OpenBSC
- popd
-}
-
-upload_osmobts() {
- pushd osmo-bts
-
- do_build --enable-sysmocom-bts --with-openbsc="$src_dir/openbsc/openbsc/include"
- do_upload osmo-bts
- popd
-}
-
-upload_osmopcu() {
- pushd osmo-pcu
-
- do_build --enable-sysmocom-bts=yes --enable-sysmocom-dsp=yes
- do_upload osmo-pcu
- popd
-}
-
-upload_libosmodsp() {
- pushd libosmo-dsp
- do_build
- do_upload libosmo-dsp
- popd
-}
-
-upload_libosmonetif() {
- pushd libosmo-netif
- do_build
- do_upload libosmo-netif
- popd
-}
-
-upload_osmogmr() {
- pushd osmo-gmr
- do_build
- do_upload osmo-gmr
- popd
-}
-
-build_libsmpp34() {
- pushd libsmpp34
- do_build
- popd
-}
-
-build_api() {
- pushd layer1-api
- install -d "$prefix/include/sysmocom/femtobts/"
- cp include/*.h "$prefix/include/sysmocom/femtobts/"
- popd
-}
-
-cd source
-
-upload_libosmocore
-upload_libosmoabis
-upload_libosmonetif
-upload_libosmosccp
-build_libsmpp34
-build_api
-upload_openggsn
-upload_openbsc
-upload_osmopcu
-
-# GMR
-upload_libosmodsp
-upload_osmogmr
-
-# last.. as currently broken
-upload_osmobts
diff --git a/coverity/prepare_source.sh b/coverity/prepare_source.sh
deleted file mode 100755
index 9a190e0..0000000
--- a/coverity/prepare_source.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-mkdir -p source
-
-cd source
-
-for proj in \
- libosmo-abis \
- libosmocore \
- libosmo-dsp \
- libosmo-netif \
- libosmo-sccp \
- libsmpp34 \
- openbsc \
- openggsn \
- osmo-bts \
- osmo-gmr \
- osmo-pcu \
- osmo-trx \
- ; do
-
- git clone git://git.osmocom.org/$proj
-done
-
-git clone git://git.sysmocom.de/sysmo-bts/layer1-api