File: coveralls.bash

package info (click to toggle)
perceptualdiff 1.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,008 kB
  • ctags: 76
  • sloc: cpp: 948; sh: 100; makefile: 50
file content (26 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download
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 -ex
#
# Run tests for Coveralls.

./coverage.bash

path=$PWD
result_path="$path/CMakeFiles/perceptualdiff.dir"

for f in *.cpp *.h
do
    base=$(basename "$f" .cpp)
    base=$(basename "$base" .h)
    cd "$result_path"
    gcov "$base"
done

# Do this in a separate pass to make sure everything is accumulated.
cd "$path"
# Ignore the header files, which don't seem to have correct coverage results.
for f in *.cpp
do
    cp "$result_path/$f.gcov" "$path" || true
done

coveralls --verbose --no-gcov --exclude='CMakeFiles'