forked from netblue30/firejail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gcov.sh
executable file
·82 lines (64 loc) · 1.07 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
gcov_init() {
USER=`whoami`
firejail --help
firemon --help
/usr/lib/firejail/fnet --help
/usr/lib/firejail/fseccomp --help
/usr/lib/firejail/ftee --help
/usr/lib/firejail/fcopy --help
firecfg --help
sudo chown $USER:$USER `find .`
}
generate() {
lcov --capture -d src/firejail -d src/firemon -d src/fcopy -d src/fseccomp -d src/fnet -d src/ftee -d src/lib -d src/firecfg --output-file gcov-file
rm -fr gcov-dir
genhtml gcov-file --output-directory gcov-dir
}
gcov_init
generate
echo "press any key to continue, or Ctrl-C to exit"
read text
# running tests
make test-root
generate
sleep 2
make test-network
generate
sleep 2
make test-appimage
generate
sleep 2
make test-overlay
generate
sleep 2
make test-fcopy
generate
sleep 2
make test-profiles
generate
sleep 2
make test-fs
generate
sleep 2
make test-utils
generate
sleep 2
make test-environment
generate
sleep 2
make test-apps
generate
sleep 2
make test-apps-x11
generate
sleep 2
make test-apps-x11-xorg
generate
sleep 2
make test-filters
generate
sleep 2
make test-arguments
generate
sleep 2