aboutsummaryrefslogtreecommitdiffstats
path: root/test/features
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 15:12:47 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 15:13:26 -0500
commitd8bcb4583cdffeefb052dbacb2441cd545ccf9eb (patch)
tree69096f63d0a8ac3adf6c7a442fa625cb3d4c7c18 /test/features
parentfeature testing (diff)
downloadfirejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.tar.gz
firejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.tar.zst
firejail-d8bcb4583cdffeefb052dbacb2441cd545ccf9eb.zip
feature testing
Diffstat (limited to 'test/features')
-rwxr-xr-xtest/features/1.1.exp14
-rw-r--r--test/features/features.txt6
-rwxr-xr-xtest/features/test.sh5
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
6set timeout 10 6set timeout 10
@@ -17,10 +17,10 @@ expect {
17} 17}
18sleep 1 18sleep 1
19 19
20send -- "ls -l /boot | wc -l\r" 20send -- "ls -l /boot\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 22 timeout {puts "TESTING ERROR 1\n";exit}
23 "1" 23 "Permission denied"
24} 24}
25after 100 25after 100
26send -- "exit\r" 26send -- "exit\r"
@@ -37,10 +37,10 @@ expect {
37} 37}
38sleep 1 38sleep 1
39 39
40send -- "ls -l /boot | wc -l\r" 40send -- "ls -l /boot\r"
41expect { 41expect {
42 timeout {puts "TESTING ERROR 3\n";exit} 42 timeout {puts "TESTING ERROR 3\n";exit}
43 "1" 43 "Permission denied"
44} 44}
45after 100 45after 100
46send -- "exit\r" 46send -- "exit\r"
@@ -56,10 +56,10 @@ expect {
56} 56}
57sleep 1 57sleep 1
58 58
59send -- "ls -l /boot | wc -l\r" 59send -- "ls -l /boot\r"
60expect { 60expect {
61 timeout {puts "TESTING ERROR 5\n";exit} 61 timeout {puts "TESTING ERROR 5\n";exit}
62 "1" 62 "Permission denied"
63} 63}
64after 100 64after 100
65send -- "exit\r" 65send -- "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
91. Default features (tesing with --noprofile) 91. Default features (tesing with --noprofile)
10 10
111.1 new /boot 111.1 disable /boot
12 - N, O, C 12 - N, O, C
13 13
141.2 new /proc 141.2 new /proc
@@ -36,6 +36,10 @@ C - chroot filesystem
36 36
371.9 mount namespace 371.9 mount namespace
38 38
391.10 disable /selinux
40 - N, O, C
41
42
39 43
402. Networking features 442. 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
7echo "TESTING: 1.1 new /boot" 7echo "TESTING: 1.1 disable /boot"
8./1.1.exp 8./1.1.exp
9 9
10echo "TESTING: 1.2 new /proc" 10echo "TESTING: 1.2 new /proc"
@@ -25,3 +25,6 @@ echo "TESTING: 1.7 new /var/tmp"
25echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" 25echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail"
26./1.8.exp 26./1.8.exp
27 27
28echo "TESTING: 1.10 disable /selinux"
29./1.10.exp
30