diff options
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 | ||