aboutsummaryrefslogtreecommitdiffstats
path: root/coverity/local_test.sh
blob: f2b89c39a3f2b3199ff914b22349c7936bd054fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -ex
# Use this script for local testing of the prepare source and build scripts
SCRIPT_DIR="$(dirname "$(realpath "$0")")"

export SRC_SKIP_FETCH=1
export SRC_CLEAN=1
export PARALLEL_MAKE="-j$(echo $(nproc) + 1 | bc)"

mkdir -p /tmp/coverity
rm -f /tmp/coverity/common.sh
cp "$SCRIPT_DIR"/* /tmp/coverity
ln -sf "$SCRIPT_DIR/../scripts/common.sh" /tmp/coverity/common.sh

cd /tmp/coverity

./prepare_source_Osmocom.sh
./build_Osmocom.sh