summaryrefslogtreecommitdiffstats
path: root/coverity
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 01:44:42 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 01:58:47 +0200
commit9c5feb21c48e78ea029da40d697df86e1d8eaf1c (patch)
tree1758731b0a1ff9410bb4ec982e267fdefffac5ce /coverity
parentb8c7833e635c43a53139f338f42cea460381e39b (diff)
coverity: add osmo-trx to Osmocom build
Diffstat (limited to 'coverity')
-rwxr-xr-xcoverity/build_Osmocom.sh8
-rwxr-xr-xcoverity/coverity_test_osmo_trx.sh46
-rwxr-xr-xcoverity/prepare_source_Osmcocom.sh1
3 files changed, 9 insertions, 46 deletions
diff --git a/coverity/build_Osmocom.sh b/coverity/build_Osmocom.sh
index 40e1e5e..6aaf5fb 100755
--- a/coverity/build_Osmocom.sh
+++ b/coverity/build_Osmocom.sh
@@ -131,6 +131,12 @@ build_osmosipconnector() {
popd
}
+build_osmotrx() {
+ pushd osmo-trx
+ do_build
+ popd
+}
+
cd "$src_dir"
rm -rf "$prefix"
@@ -155,3 +161,5 @@ build_osmogmr
# MNCC to SIP
build_osmosipconnector
+
+build_osmotrx
diff --git a/coverity/coverity_test_osmo_trx.sh b/coverity/coverity_test_osmo_trx.sh
deleted file mode 100755
index f4b382e..0000000
--- a/coverity/coverity_test_osmo_trx.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env bash
-
-set -e -x
-
-base_dir="$PWD"
-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
- autoreconf --install --force
- ./configure --prefix="$prefix" $*
-
- cov-build --dir cov-int make
- make install
- tar czf myproject.tgz cov-int
-}
-
-do_upload() {
- curl \
- --form token=$2 \
- --form email=holger@freyther.de --form file=@myproject.tgz \
- --form version=Version --form description=AutoUpload \
- https://scan.coverity.com/builds?project=$1
- :
-}
-
-upload_osmotrx() {
- pushd osmo-trx
-
- do_build
- #do_upload osmo-trx Insert-Coverity-Token-Here
- popd
-}
-
-
-cd source
-
-upload_osmotrx
-
diff --git a/coverity/prepare_source_Osmcocom.sh b/coverity/prepare_source_Osmcocom.sh
index 397e7fc..11e397b 100755
--- a/coverity/prepare_source_Osmcocom.sh
+++ b/coverity/prepare_source_Osmcocom.sh
@@ -19,6 +19,7 @@ for proj in \
osmo-iuh \
osmo-pcu \
osmo-sip-connector \
+ osmo-trx \
; do
git clone git://git.osmocom.org/$proj