-
Notifications
You must be signed in to change notification settings - Fork 669
Expand file tree
/
Copy pathmkgcov.sh
More file actions
executable file
·45 lines (42 loc) · 997 Bytes
/
Copy pathmkgcov.sh
File metadata and controls
executable file
·45 lines (42 loc) · 997 Bytes
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
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2026 Firejail Authors
# License GPL v2
# GCOV test setup
# required: sudo, gcov (apt-get install gcovr)
# Compile and install
# $ ./configure --prefix=/usr --enable-apparmor --enable-gcov
# $ make
# $ sudo make install
# run as regular user: ./gcov.sh
# result in gcov-dir/index.html
echo
echo "checking gcov data"
echo
if test -f src/firejail/main.gcno; then
rm -fr gcov-dir
sleep 1
mkdir gcov-dir
USER="$(whoami)"
find . -exec sudo chown "$USER:$USER" '{}' +
sleep 1
gcovr --html-nested gcov-dir/index.html \
src/firejail src/firemon src/firecfg src/jailcheck \
src/etc-cleanup \
src/fbuilder \
src/fbwrap \
src/fcopy \
src/fnet \
src/fnetfilter \
src/fnetlock \
src/fnettrace \
src/fnettrace-dns \
src/fnettrace-icmp \
src/fnettrace-sni \
src/fseccomp \
src/fsec-optimize \
src/fsec-print \
src/ftee \
src/fzenity \
src/lib
fi