diff options
author | netblue30 <netblue30@yahoo.com> | 2017-11-18 08:39:02 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-11-18 08:39:02 -0500 |
commit | ead4ec3089b97eda1b438da248caf76f169345ad (patch) | |
tree | 31bc22bcba4e6530b5f0daba3f332702efa7a4b9 /test/fnetfilter/fnetfilter.sh | |
parent | Consistent home directory nomenclature (diff) | |
download | firejail-ead4ec3089b97eda1b438da248caf76f169345ad.tar.gz firejail-ead4ec3089b97eda1b438da248caf76f169345ad.tar.zst firejail-ead4ec3089b97eda1b438da248caf76f169345ad.zip |
netfilter template support
Diffstat (limited to 'test/fnetfilter/fnetfilter.sh')
-rwxr-xr-x | test/fnetfilter/fnetfilter.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/fnetfilter/fnetfilter.sh b/test/fnetfilter/fnetfilter.sh new file mode 100755 index 000000000..5fd08d186 --- /dev/null +++ b/test/fnetfilter/fnetfilter.sh | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/bash | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2017 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | export MALLOC_CHECK_=3 | ||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | ||
8 | |||
9 | if [ -f /etc/debian_version ]; then | ||
10 | libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") | ||
11 | export PATH="$PATH:$libdir" | ||
12 | fi | ||
13 | |||
14 | export PATH="$PATH:/usr/lib/firejail" | ||
15 | |||
16 | echo "TESTING: fnetfilter cmdline (test/fnetfilter/cmdline.exp)" | ||
17 | ./cmdline.exp | ||
18 | |||
19 | echo "TESTING: fnetfilter default (test/fnetfilter/default.exp)" | ||
20 | ./default.exp | ||
21 | |||
22 | echo "TESTING: fnetfilter copy (test/fnetfilter/copy.exp)" | ||
23 | ./copy.exp | ||
24 | |||
25 | echo "TESTING: fnetfilter template (test/fnetfilter/template.exp)" | ||
26 | ./template.exp | ||
27 | |||
28 | rm -f outfile | ||