aboutsummaryrefslogtreecommitdiffstats
path: root/test/features
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 13:37:36 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 13:37:36 -0500
commit0f1a12da2881727a2e1c214e0d48aa10b546f5fc (patch)
tree418bb92e04af2099f7164be370715ce16587d0da /test/features
parentfeature test (diff)
downloadfirejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.tar.gz
firejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.tar.zst
firejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.zip
disable firejail configuration by default
Diffstat (limited to 'test/features')
-rwxr-xr-xtest/features/1.1.exp4
-rwxr-xr-xtest/features/1.5.exp4
-rwxr-xr-xtest/features/1.6.exp4
-rwxr-xr-xtest/features/1.7.exp4
-rwxr-xr-xtest/features/1.8.exp38
-rwxr-xr-xtest/features/test.sh10
6 files changed, 40 insertions, 24 deletions
diff --git a/test/features/1.1.exp b/test/features/1.1.exp
index 41443a080..5ba123107 100755
--- a/test/features/1.1.exp
+++ b/test/features/1.1.exp
@@ -51,14 +51,14 @@ sleep 1
51# 51#
52send -- "firejail --noprofile --chroot=/tmp/chroot\r" 52send -- "firejail --noprofile --chroot=/tmp/chroot\r"
53expect { 53expect {
54 timeout {puts "TESTING ERROR 3\n";exit} 54 timeout {puts "TESTING ERROR 4\n";exit}
55 "Child process initialized" 55 "Child process initialized"
56} 56}
57sleep 1 57sleep 1
58 58
59send -- "ls -l /boot | wc -l\r" 59send -- "ls -l /boot | wc -l\r"
60expect { 60expect {
61 timeout {puts "TESTING ERROR 4\n";exit} 61 timeout {puts "TESTING ERROR 5\n";exit}
62 "1" 62 "1"
63} 63}
64after 100 64after 100
diff --git a/test/features/1.5.exp b/test/features/1.5.exp
index d722c5811..84c00937f 100755
--- a/test/features/1.5.exp
+++ b/test/features/1.5.exp
@@ -51,14 +51,14 @@ sleep 1
51# 51#
52send -- "firejail --noprofile --chroot=/tmp/chroot\r" 52send -- "firejail --noprofile --chroot=/tmp/chroot\r"
53expect { 53expect {
54 timeout {puts "TESTING ERROR 3\n";exit} 54 timeout {puts "TESTING ERROR 4\n";exit}
55 "Child process initialized" 55 "Child process initialized"
56} 56}
57sleep 1 57sleep 1
58 58
59send -- "ps aux | wc -l \r" 59send -- "ps aux | wc -l \r"
60expect { 60expect {
61 timeout {puts "TESTING ERROR 4\n";exit} 61 timeout {puts "TESTING ERROR 5\n";exit}
62 "5" 62 "5"
63} 63}
64after 100 64after 100
diff --git a/test/features/1.6.exp b/test/features/1.6.exp
index a9c8f2a19..0a4b788b8 100755
--- a/test/features/1.6.exp
+++ b/test/features/1.6.exp
@@ -51,14 +51,14 @@ sleep 1
51# 51#
52send -- "firejail --noprofile --chroot=/tmp/chroot\r" 52send -- "firejail --noprofile --chroot=/tmp/chroot\r"
53expect { 53expect {
54 timeout {puts "TESTING ERROR 3\n";exit} 54 timeout {puts "TESTING ERROR 4\n";exit}
55 "Child process initialized" 55 "Child process initialized"
56} 56}
57sleep 1 57sleep 1
58 58
59send -- "ls -l /var/log/syslog | wc -l\r" 59send -- "ls -l /var/log/syslog | wc -l\r"
60expect { 60expect {
61 timeout {puts "TESTING ERROR 4\n";exit} 61 timeout {puts "TESTING ERROR 5\n";exit}
62 "0" 62 "0"
63} 63}
64after 100 64after 100
diff --git a/test/features/1.7.exp b/test/features/1.7.exp
index 0de3e224d..c95184fd1 100755
--- a/test/features/1.7.exp
+++ b/test/features/1.7.exp
@@ -53,14 +53,14 @@ sleep 1
53# 53#
54send -- "firejail --noprofile --chroot=/tmp/chroot\r" 54send -- "firejail --noprofile --chroot=/tmp/chroot\r"
55expect { 55expect {
56 timeout {puts "TESTING ERROR 3\n";exit} 56 timeout {puts "TESTING ERROR 4\n";exit}
57 "Child process initialized" 57 "Child process initialized"
58} 58}
59sleep 1 59sleep 1
60 60
61send -- "ls -l /var/tmp/somefile | wc -l\r" 61send -- "ls -l /var/tmp/somefile | wc -l\r"
62expect { 62expect {
63 timeout {puts "TESTING ERROR 4\n";exit} 63 timeout {puts "TESTING ERROR 5\n";exit}
64 "0" 64 "0"
65} 65}
66after 100 66after 100
diff --git a/test/features/1.8.exp b/test/features/1.8.exp
index 514dd3b81..aefe9d8c5 100755
--- a/test/features/1.8.exp
+++ b/test/features/1.8.exp
@@ -10,7 +10,6 @@ match_max 100000
10# 10#
11# N 11# N
12# 12#
13send -- "touch /var/tmp/somefile\r"
14sleep 1 13sleep 1
15send -- "firejail --noprofile\r" 14send -- "firejail --noprofile\r"
16expect { 15expect {
@@ -19,10 +18,16 @@ expect {
19} 18}
20sleep 1 19sleep 1
21 20
22send -- "ls -l /var/tmp/somefile | wc -l\r" 21send -- "ls /etc/firejail\r"
23expect { 22expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 23 timeout {puts "TESTING ERROR 1\n";exit}
25 "0" 24 "Permission denied"
25}
26after 100
27send -- "ls ~/.config/firejail\r"
28expect {
29 timeout {puts "TESTING ERROR 1.1\n";exit}
30 "Permission denied"
26} 31}
27after 100 32after 100
28send -- "exit\r" 33send -- "exit\r"
@@ -38,13 +43,19 @@ expect {
38 "Child process initialized" 43 "Child process initialized"
39} 44}
40sleep 1 45sleep 1
41 46send -- "ls /etc/firejail\r"
42send -- "ls -l /var/tmp/somefile | wc -l\r"
43expect { 47expect {
44 timeout {puts "TESTING ERROR 3\n";exit} 48 timeout {puts "TESTING ERROR 3\n";exit}
45 "0" 49 "Permission denied"
46} 50}
47after 100 51after 100
52send -- "ls ~/.config/firejail\r"
53expect {
54 timeout {puts "TESTING ERROR 3.1\n";exit}
55 "Permission denied"
56}
57after 100
58
48send -- "exit\r" 59send -- "exit\r"
49sleep 1 60sleep 1
50 61
@@ -53,15 +64,20 @@ sleep 1
53# 64#
54send -- "firejail --noprofile --chroot=/tmp/chroot\r" 65send -- "firejail --noprofile --chroot=/tmp/chroot\r"
55expect { 66expect {
56 timeout {puts "TESTING ERROR 3\n";exit} 67 timeout {puts "TESTING ERROR 4\n";exit}
57 "Child process initialized" 68 "Child process initialized"
58} 69}
59sleep 1 70sleep 1
60 71send -- "ls /etc/firejail\r"
61send -- "ls -l /var/tmp/somefile | wc -l\r"
62expect { 72expect {
63 timeout {puts "TESTING ERROR 4\n";exit} 73 timeout {puts "TESTING ERROR 5\n";exit}
64 "0" 74 "Permission denied"
75}
76after 100
77send -- "ls ~/.config/firejail\r"
78expect {
79 timeout {puts "TESTING ERROR 5.1\n";exit}
80 "Permission denied"
65} 81}
66after 100 82after 100
67send -- "exit\r" 83send -- "exit\r"
diff --git a/test/features/test.sh b/test/features/test.sh
index b4ef6503a..1fb7557c8 100755
--- a/test/features/test.sh
+++ b/test/features/test.sh
@@ -4,13 +4,13 @@
4# Feature testing 4# Feature testing
5# 5#
6 6
7echo "TESTING: 1.1. new /boot" 7echo "TESTING: 1.1 new /boot"
8./1.1.exp 8./1.1.exp
9 9
10echo "TESTING: 1.2. new /proc" 10echo "TESTING: 1.2 new /proc"
11./1.2.exp 11./1.2.exp
12 12
13echo "TESTING: 1.5. PID namespace" 13echo "TESTING: 1.5 PID namespace"
14./1.5.exp 14./1.5.exp
15 15
16echo "TESTING: 1.6 new /var/log" 16echo "TESTING: 1.6 new /var/log"
@@ -19,6 +19,6 @@ echo "TESTING: 1.6 new /var/log"
19echo "TESTING: 1.7 new /var/tmp" 19echo "TESTING: 1.7 new /var/tmp"
20./1.7.exp 20./1.7.exp
21 21
22#echo "TESTING: " 22echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail"
23#./1..exp 23./1.8.exp
24 24