diff options
author | netblue30 <netblue30@yahoo.com> | 2015-11-22 15:12:47 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-11-22 15:13:26 -0500 |
commit | d8bcb4583cdffeefb052dbacb2441cd545ccf9eb (patch) | |
tree | 69096f63d0a8ac3adf6c7a442fa625cb3d4c7c18 /test/features | |
parent | feature testing (diff) | |
download | firejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.tar.gz firejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.tar.zst firejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.zip |
feature testing
Diffstat (limited to 'test/features')
-rwxr-xr-x | test/features/1.1.exp | 14 | ||||
-rw-r--r-- | test/features/features.txt | 6 | ||||
-rwxr-xr-x | test/features/test.sh | 5 |
3 files changed, 16 insertions, 9 deletions
diff --git a/test/features/1.1.exp b/test/features/1.1.exp index 5ba123107..06c42c815 100755 --- a/test/features/1.1.exp +++ b/test/features/1.1.exp | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/usr/bin/expect -f | 1 | #!/usr/bin/expect -f |
2 | # | 2 | # |
3 | # new /boot | 3 | # disable /boot |
4 | # | 4 | # |
5 | 5 | ||
6 | set timeout 10 | 6 | set timeout 10 |
@@ -17,10 +17,10 @@ expect { | |||
17 | } | 17 | } |
18 | sleep 1 | 18 | sleep 1 |
19 | 19 | ||
20 | send -- "ls -l /boot | wc -l\r" | 20 | send -- "ls -l /boot\r" |
21 | expect { | 21 | expect { |
22 | timeout {puts "TESTING ERROR 1\n";exit} | 22 | timeout {puts "TESTING ERROR 1\n";exit} |
23 | "1" | 23 | "Permission denied" |
24 | } | 24 | } |
25 | after 100 | 25 | after 100 |
26 | send -- "exit\r" | 26 | send -- "exit\r" |
@@ -37,10 +37,10 @@ expect { | |||
37 | } | 37 | } |
38 | sleep 1 | 38 | sleep 1 |
39 | 39 | ||
40 | send -- "ls -l /boot | wc -l\r" | 40 | send -- "ls -l /boot\r" |
41 | expect { | 41 | expect { |
42 | timeout {puts "TESTING ERROR 3\n";exit} | 42 | timeout {puts "TESTING ERROR 3\n";exit} |
43 | "1" | 43 | "Permission denied" |
44 | } | 44 | } |
45 | after 100 | 45 | after 100 |
46 | send -- "exit\r" | 46 | send -- "exit\r" |
@@ -56,10 +56,10 @@ expect { | |||
56 | } | 56 | } |
57 | sleep 1 | 57 | sleep 1 |
58 | 58 | ||
59 | send -- "ls -l /boot | wc -l\r" | 59 | send -- "ls -l /boot\r" |
60 | expect { | 60 | expect { |
61 | timeout {puts "TESTING ERROR 5\n";exit} | 61 | timeout {puts "TESTING ERROR 5\n";exit} |
62 | "1" | 62 | "Permission denied" |
63 | } | 63 | } |
64 | after 100 | 64 | after 100 |
65 | send -- "exit\r" | 65 | send -- "exit\r" |
diff --git a/test/features/features.txt b/test/features/features.txt index 01941e8f8..3342a1635 100644 --- a/test/features/features.txt +++ b/test/features/features.txt | |||
@@ -8,7 +8,7 @@ C - chroot filesystem | |||
8 | 8 | ||
9 | 1. Default features (tesing with --noprofile) | 9 | 1. Default features (tesing with --noprofile) |
10 | 10 | ||
11 | 1.1 new /boot | 11 | 1.1 disable /boot |
12 | - N, O, C | 12 | - N, O, C |
13 | 13 | ||
14 | 1.2 new /proc | 14 | 1.2 new /proc |
@@ -36,6 +36,10 @@ C - chroot filesystem | |||
36 | 36 | ||
37 | 1.9 mount namespace | 37 | 1.9 mount namespace |
38 | 38 | ||
39 | 1.10 disable /selinux | ||
40 | - N, O, C | ||
41 | |||
42 | |||
39 | 43 | ||
40 | 2. Networking features | 44 | 2. Networking features |
41 | 45 | ||
diff --git a/test/features/test.sh b/test/features/test.sh index ab00f7f29..341126a09 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -4,7 +4,7 @@ | |||
4 | # Feature testing | 4 | # Feature testing |
5 | # | 5 | # |
6 | 6 | ||
7 | echo "TESTING: 1.1 new /boot" | 7 | echo "TESTING: 1.1 disable /boot" |
8 | ./1.1.exp | 8 | ./1.1.exp |
9 | 9 | ||
10 | echo "TESTING: 1.2 new /proc" | 10 | echo "TESTING: 1.2 new /proc" |
@@ -25,3 +25,6 @@ echo "TESTING: 1.7 new /var/tmp" | |||
25 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" | 25 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" |
26 | ./1.8.exp | 26 | ./1.8.exp |
27 | 27 | ||
28 | echo "TESTING: 1.10 disable /selinux" | ||
29 | ./1.10.exp | ||
30 | |||