diff options
author | 2018-07-27 18:44:34 -0400 | |
---|---|---|
committer | 2018-07-27 18:44:34 -0400 | |
commit | 405cf8ad04c4df6a0ebb058d8334b021d9ef75a1 (patch) | |
tree | 2cbbc94e68be0255b3a8c29d4b608aad5c86fe2e /linecnt.sh | |
parent | removed compile time --enable-network=restricted, --net=none allowed even if ... (diff) | |
download | firejail-405cf8ad04c4df6a0ebb058d8334b021d9ef75a1.tar.gz firejail-405cf8ad04c4df6a0ebb058d8334b021d9ef75a1.tar.zst firejail-405cf8ad04c4df6a0ebb058d8334b021d9ef75a1.zip |
line counter
Diffstat (limited to 'linecnt.sh')
-rwxr-xr-x | linecnt.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linecnt.sh b/linecnt.sh new file mode 100755 index 000000000..8d77a65ee --- /dev/null +++ b/linecnt.sh | |||
@@ -0,0 +1,28 @@ | |||
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 | /usr/lib/firejail/fldd --help > /dev/null | ||
12 | firecfg --help > /dev/null | ||
13 | |||
14 | /usr/lib/firejail/fnetfilter --help > /dev/null | ||
15 | /usr/lib/firejail/fsec-print --help > /dev/null | ||
16 | /usr/lib/firejail/fsec-optimize --help > /dev/null | ||
17 | /usr/lib/firejail/faudit --help > /dev/null | ||
18 | /usr/lib/firejail/fbuilder --help > /dev/null | ||
19 | |||
20 | sudo chown $USER:$USER `find .` | ||
21 | } | ||
22 | |||
23 | rm -fr gcov-dir | ||
24 | gcov_init | ||
25 | lcov -q --capture -d src/firejail -d src/firemon -d src/faudit -d src/fbuilder \ | ||
26 | -d src/fcopy -d src/fnetfilter -d src/fsec-print -d src/fsec-optimize -d src/fseccomp \ | ||
27 | -d src/fnet -d src/ftee -d src/lib -d src/firecfg -d src/fldd --output-file gcov-file | ||
28 | genhtml -q gcov-file --output-directory gcov-dir | ||