blob: 97645849c9a978d2a997500e12fa119751139a17 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#!/bin/bash -e
cd $(dirname $0)
DIRS="commander subscription asynchronicity registry pluginchanging"
. ./env.sh
make -C ../../libcontextprovider/src
make -C ../../libcontextprovider/context-provide
make -C ../cli
make -C ../cls
make -C ../update-contextkit-providers
if [ -n "$COVERAGE" ]
then
make -C coverage-build
export LD_LIBRARY_PATH=../coverage-build/.libs:$LD_LIBRARY_PATH
export PATH=../../../python:../../../libcontextprovider/context-provide/.libs:../../cli/.libs:../../cls/.libs:$PATH
rm -rf coverage-build/.libs/*.gcda
else
make -C ../src
fi
make -C testplugins
if pkg-config contextprovider-1.0 || [ -e ../../libcontextprovider/src/.libs/libcontextprovider.so ]
then
for dir in $DIRS; do
echo "Running tests in $dir"
cd $dir
for file in *.py; do
python2.5 $file
done
cd ..
done
else
echo "libcontextprovider is not installed nor built"
exit 1
fi
echo "Running update-contextkit-providers customer check"
cd update-contextkit-providers ; ./test.sh ; cd ..
echo "Running forward-compatible customer check"
cd forward-compatible ; ./test.sh ; cd ..
if [ -n "$COVERAGE" ]
then
echo "computing coverage"
rm -rf coverage
mkdir -p coverage
lcov --directory coverage-build/.libs/ --capture --output-file coverage/all.cov
lcov --extract coverage/all.cov '*/src/*.cpp' --output-file coverage/src.cov
genhtml -o coverage/ coverage/src.cov
fi
|