File: run.sh

package info (click to toggle)
libsdsl 2.1.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,992 kB
  • sloc: cpp: 42,286; makefile: 1,171; ansic: 318; sh: 201; python: 27
file content (26 lines) | stat: -rwxr-xr-x 599 bytes parent folder | download | duplicates (20)
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

CUR_DIR=`pwd`
cd "${CUR_DIR}"
OLD_DIR="$( cd "$( dirname "$0" )" && pwd )" # gets the directory where the script is located in
cd "${OLD_DIR}"
OLD_DIR=`pwd`

lcov --directory .. --zerocounters

cd ..
make clean
make CODE_COVER="-g -fprofile-arcs -ftest-coverage -lgcov" $1
MAKERET=$?
cd ${OLD_DIR}

if [ ${MAKERET} != 0 ]; then
	echo "ERROR: tests failed."
	exit 1
fi

INC_STR=`grep 'INC_DIR = ' ../../Make.helper`
INC_DIR=${INC_STR#INC_DIR = }

lcov -d .. -d ${INC_DIR}/sdsl --no-recursion --no-external --capture --output-file sdsl-lite.info
genhtml -o output --legend sdsl-lite.info