-
Notifications
You must be signed in to change notification settings - Fork 567
/
gcov.sh
executable file
·62 lines (56 loc) · 1.5 KB
/
gcov.sh
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
55
56
57
58
59
60
61
62
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2024 Firejail Authors
# License GPL v2
# GCOV test setup
# required: sudo, lcov (apt-get install lcov)
# setup: modify ./configure line below if necessary
# run as regular user: ./gcov.sh
# result in gcov-dir/index.html
gcov_generate() {
USER="$(whoami)"
find . -exec sudo chown "$USER:$USER" '{}' +
lcov -q --capture \
-d src/firejail -d src/lib -d src/firecfg -d src/firemon \
-d src/fnet -d src/fnetfilter -d src/fcopy \
-d src/fseccomp --output-file gcov-file
genhtml -q gcov-file --output-directory gcov-dir
}
make distclean &&
./configure --prefix=/usr --enable-fatal-warnings \
--enable-apparmor --enable-gcov &&
make -j "$(nproc)" &&
sudo make install
rm -fr gcov-dir gcov-file
make print-version
gcov_generate
make test-firecfg | grep TESTING
gcov_generate
make test-capabilities | grep TESTING
gcov_generate
make test-seccomp-extra | grep TESTING
gcov_generate
make test-apparmor | grep TESTING
gcov_generate
make test-network | grep TESTING
gcov_generate
make test-appimage | grep TESTING
gcov_generate
make test-chroot | grep TESTING
gcov_generate
make test-sysutils | grep TESTING
gcov_generate
make test-private-etc | grep TESTING
gcov_generate
make test-profiles | grep TESTING
gcov_generate
make test-fcopy | grep TESTING
gcov_generate
make test-fnetfilter | grep TESTING
gcov_generate
make test-fs | grep TESTING
gcov_generate
make test-utils | grep TESTING
gcov_generate
make test-environment | grep TESTING
gcov_generate