aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/coverage.sh
blob: 18e2e98063da13e9108435b34d69c6abf89a8320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e

if [ "${CC#clang}" != "${CC}" ] ; then
	export CXX="clang++"
fi

cd "$(dirname "$0")"/../..
./bootstrap
./configure \
	CFLAGS="-O0 -coverage $CLFAGS" CXXFLAGS="-O0 -coverage $CXXFLAGS" LDFLAGS="--coverage $LDFLAGS" \
	--enable-debug=full --enable-helper-linux --enable-dpdk --disable-test-perf --disable-test-perf-proc
export CCACHE_DISABLE=1
make -j $(nproc)

echo 1000 | tee /proc/sys/vm/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

# Ignore possible failures there because these tests depends on measurements
# and systems might differ in performance.
export CI="true"

ODP_SCHEDULER=basic    make check
ODP_SCHEDULER=sp       make check
ODP_SCHEDULER=iquery   make check
ODP_SCHEDULER=scalable make check

bash <(curl -s https://codecov.io/bash) -X coveragepy

umount /mnt/huge