aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/coverage.sh
blob: cdcddfe937b408bd468820e4ab53c3b79e3b3ae3 (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
#!/bin/bash
set -e

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

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

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

ODP_SCHEDULER=basic    make check

# Run only validation tests for the sp scheduler
pushd ./test/validation/api/
ODP_SCHEDULER=sp       make check
popd