diff options
Diffstat (limited to 'gcov.sh')
-rwxr-xr-x | gcov.sh | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/gcov.sh b/gcov.sh new file mode 100755 index 000000000..57190cad2 --- /dev/null +++ b/gcov.sh | |||
@@ -0,0 +1,94 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | gcov_init() { | ||
4 | USER=`whoami` | ||
5 | firejail --help > /dev/null | ||
6 | firemon --help > /dev/null | ||
7 | /usr/lib/firejail/fnet --help > /dev/null | ||
8 | /usr/lib/firejail/fseccomp --help > /dev/null | ||
9 | /usr/lib/firejail/ftee --help > /dev/null | ||
10 | /usr/lib/firejail/fcopy --help > /dev/null | ||
11 | firecfg --help > /dev/null | ||
12 | sudo chown $USER:$USER `find .` | ||
13 | } | ||
14 | |||
15 | generate() { | ||
16 | lcov -q --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-new | ||
17 | lcov --add-tracefile gcov-file-old --add-tracefile gcov-file-new --output-file gcov-file | ||
18 | rm -fr gcov-dir | ||
19 | genhtml -q gcov-file --output-directory gcov-dir | ||
20 | sudo rm `find . -name *.gcda` | ||
21 | cp gcov-file gcov-file-old | ||
22 | gcov_init | ||
23 | } | ||
24 | |||
25 | |||
26 | gcov_init | ||
27 | lcov -q --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-old | ||
28 | |||
29 | #make test-environment | ||
30 | #generate | ||
31 | #sleep 2 | ||
32 | #exit | ||
33 | |||
34 | |||
35 | # running tests | ||
36 | make test-root | ||
37 | generate | ||
38 | sleep 2 | ||
39 | |||
40 | make test-chroot | ||
41 | generate | ||
42 | sleep 2 | ||
43 | |||
44 | make test-network | ||
45 | generate | ||
46 | sleep 2 | ||
47 | |||
48 | make test-appimage | ||
49 | generate | ||
50 | sleep 2 | ||
51 | |||
52 | make test-overlay | ||
53 | generate | ||
54 | sleep 2 | ||
55 | |||
56 | make test-fcopy | ||
57 | generate | ||
58 | sleep 2 | ||
59 | |||
60 | make test-profiles | ||
61 | generate | ||
62 | sleep 2 | ||
63 | |||
64 | make test-fs | ||
65 | generate | ||
66 | sleep 2 | ||
67 | |||
68 | make test-utils | ||
69 | generate | ||
70 | sleep 2 | ||
71 | |||
72 | make test-environment | ||
73 | generate | ||
74 | sleep 2 | ||
75 | |||
76 | make test-apps | ||
77 | generate | ||
78 | sleep 2 | ||
79 | |||
80 | make test-apps-x11 | ||
81 | generate | ||
82 | sleep 2 | ||
83 | |||
84 | make test-apps-x11-xorg | ||
85 | generate | ||
86 | sleep 2 | ||
87 | |||
88 | make test-filters | ||
89 | generate | ||
90 | sleep 2 | ||
91 | |||
92 | make test-arguments | ||
93 | generate | ||
94 | sleep 2 | ||