Fix CIEDE script for high bit depth
[daala.git] / ci / coverage.sh
1 #!/bin/bash -e
2 # continuous integration test script
3 # run this from the top-level source directory
4
5 # In Jenkins scripts like this should generally be sourced so that they
6 #  run in the jenkins controlled shell environment so that errors get noticed.
7
8 # run the lcov code-coverage analysis tool
9
10 LCOV_PATH=/opt/lcov/bin
11 LCOV=${LCOV_PATH}/lcov
12 GENHTML=${LCOV_PATH}/genhtml
13 if [ -z "$VIDEOS" ]; then
14   VIDEOS=/usr/local/share/videos
15 fi
16
17 cd unix && rm -Rf objs
18 make clean
19 CFLAGS="-g3 -fprofile-arcs -ftest-coverage -UOD_ENABLE_ASSERTIONS" make
20 ${LCOV} -z -d `pwd` -b `pwd`
21 ${LCOV} -c -i -b `pwd` -d `pwd` -t baseline -o baseline.info
22 CFLAGS="-g3 -fprofile-arcs -ftest-coverage -UOD_ENABLE_ASSERTIONS" make check
23 ${LCOV} -c -b `pwd` -d `pwd` -t check -o makecheck.info
24 ${LCOV} -z -d `pwd` -b `pwd`
25 rm -f out.ogv
26 ./encoder_example -k 4 ${VIDEOS}/claire_qcif-2frames.y4m -o out.ogv
27 ./dump_video out.ogv -o /dev/null
28 ${LCOV} -c -b `pwd` -d `pwd` -t encoderdecoder -o encdec.info
29 ${LCOV} -a baseline.info -a makecheck.info -a encdec.info -o daala_coverage.info
30 ${GENHTML} -s -o coverage/ daala_coverage.info