aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-13 07:50:40 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-13 07:50:40 -0500
commit4a8a6eff0ee1633b28f0302e5bd356790110b28b (patch)
treea6a2dccce6f7ca30cb1dc144cb224243f5903f59 /test
parentremoved exclude-token from profile include (diff)
downloadfirejail-4a8a6eff0ee1633b28f0302e5bd356790110b28b.tar.gz
firejail-4a8a6eff0ee1633b28f0302e5bd356790110b28b.tar.zst
firejail-4a8a6eff0ee1633b28f0302e5bd356790110b28b.zip
support for kde and server programs
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs_chroot.exp2
-rwxr-xr-xtest/ignore.exp2
-rwxr-xr-xtest/option-trace.exp10
-rwxr-xr-xtest/pid.exp2
-rwxr-xr-xtest/trace.exp29
5 files changed, 22 insertions, 23 deletions
diff --git a/test/fs_chroot.exp b/test/fs_chroot.exp
index 4ddf8d32a..cc0d82179 100755
--- a/test/fs_chroot.exp
+++ b/test/fs_chroot.exp
@@ -54,7 +54,7 @@ sleep 1
54send -- "ps aux |wc -l; pwd\r" 54send -- "ps aux |wc -l; pwd\r"
55expect { 55expect {
56 timeout {puts "TESTING ERROR 5\n";exit} 56 timeout {puts "TESTING ERROR 5\n";exit}
57 "5" 57 "6"
58} 58}
59expect { 59expect {
60 timeout {puts "TESTING ERROR 6\n";exit} 60 timeout {puts "TESTING ERROR 6\n";exit}
diff --git a/test/ignore.exp b/test/ignore.exp
index ab7f0655f..8f8076fb3 100755
--- a/test/ignore.exp
+++ b/test/ignore.exp
@@ -30,7 +30,7 @@ sleep 1
30send -- "ps aux | wc -l\r" 30send -- "ps aux | wc -l\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 4\n";exit} 32 timeout {puts "TESTING ERROR 4\n";exit}
33 "4" 33 "5"
34} 34}
35sleep 1 35sleep 1
36send -- "exit\r" 36send -- "exit\r"
diff --git a/test/option-trace.exp b/test/option-trace.exp
index b20ef9ef9..6fd113e2b 100755
--- a/test/option-trace.exp
+++ b/test/option-trace.exp
@@ -11,17 +11,17 @@ expect {
11} 11}
12expect { 12expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
14 "1:bash:open /dev/tty" {puts "64bit\n"} 14 "bash:open /dev/tty" {puts "64bit\n"}
15 "1:bash:open64 /dev/tty" {puts "32bit\n"} 15 "bash:open64 /dev/tty" {puts "32bit\n"}
16} 16}
17expect { 17expect {
18 timeout {puts "TESTING ERROR 2\n";exit} 18 timeout {puts "TESTING ERROR 2\n";exit}
19 "1:bash:fopen /etc/passwd" 19 "bash:fopen /etc/passwd"
20} 20}
21expect { 21expect {
22 timeout {puts "TESTING ERROR 3\n";exit} 22 timeout {puts "TESTING ERROR 3\n";exit}
23 "1:bash:access /etc/terminfo/x/xterm" {puts "debian\n"} 23 "bash:access /etc/terminfo/x/xterm" {puts "debian\n"}
24 "1:bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"} 24 "bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"}
25} 25}
26 26
27sleep 1 27sleep 1
diff --git a/test/pid.exp b/test/pid.exp
index 0baf3af0e..d382feb96 100755
--- a/test/pid.exp
+++ b/test/pid.exp
@@ -37,7 +37,7 @@ sleep 1
37send -- "ps aux |wc -l; pwd\r" 37send -- "ps aux |wc -l; pwd\r"
38expect { 38expect {
39 timeout {puts "TESTING ERROR 5\n";exit} 39 timeout {puts "TESTING ERROR 5\n";exit}
40 "5" 40 "6"
41} 41}
42expect { 42expect {
43 timeout {puts "TESTING ERROR 6\n";exit} 43 timeout {puts "TESTING ERROR 6\n";exit}
diff --git a/test/trace.exp b/test/trace.exp
index 2b5003d83..21dd6a559 100755
--- a/test/trace.exp
+++ b/test/trace.exp
@@ -11,7 +11,7 @@ expect {
11} 11}
12expect { 12expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
14 "1:mkdir:mkdir ttt" 14 "mkdir:mkdir ttt"
15} 15}
16sleep 1 16sleep 1
17 17
@@ -22,7 +22,7 @@ expect {
22} 22}
23expect { 23expect {
24 timeout {puts "TESTING ERROR 3\n";exit} 24 timeout {puts "TESTING ERROR 3\n";exit}
25 "1:rmdir:rmdir ttt" 25 "rmdir:rmdir ttt"
26} 26}
27sleep 1 27sleep 1
28 28
@@ -33,8 +33,8 @@ expect {
33} 33}
34expect { 34expect {
35 timeout {puts "TESTING ERROR 5\n";exit} 35 timeout {puts "TESTING ERROR 5\n";exit}
36 "1:touch:open ttt" {puts "OK\n";} 36 "touch:open ttt" {puts "OK\n";}
37 "1:touch:open64 ttt" {puts "OK\n";} 37 "touch:open64 ttt" {puts "OK\n";}
38} 38}
39sleep 1 39sleep 1
40 40
@@ -45,7 +45,7 @@ expect {
45} 45}
46expect { 46expect {
47 timeout {puts "TESTING ERROR 7\n";exit} 47 timeout {puts "TESTING ERROR 7\n";exit}
48 "1:rm:unlinkat ttt" 48 "rm:unlinkat ttt"
49} 49}
50sleep 1 50sleep 1
51 51
@@ -56,26 +56,26 @@ expect {
56} 56}
57expect { 57expect {
58 timeout {puts "TESTING ERROR 8.2\n";exit} 58 timeout {puts "TESTING ERROR 8.2\n";exit}
59 "1:bash:open /dev/tty" {puts "OK\n";} 59 "bash:open /dev/tty" {puts "OK\n";}
60 "1:bash:open64 /dev/tty" {puts "OK\n";} 60 "bash:open64 /dev/tty" {puts "OK\n";}
61} 61}
62expect { 62expect {
63 timeout {puts "TESTING ERROR 8.3\n";exit} 63 timeout {puts "TESTING ERROR 8.3\n";exit}
64 "1:wget:fopen64 /etc/wgetrc" {puts "OK\n";} 64 "wget:fopen64 /etc/wgetrc" {puts "OK\n";}
65 "1:wget:fopen /etc/wgetrc" {puts "OK\n";} 65 "wget:fopen /etc/wgetrc" {puts "OK\n";}
66} 66}
67expect { 67expect {
68 timeout {puts "TESTING ERROR 8.4\n";exit} 68 timeout {puts "TESTING ERROR 8.4\n";exit}
69 "1:wget:fopen /etc/hosts" 69 "wget:fopen /etc/hosts"
70} 70}
71expect { 71expect {
72 timeout {puts "TESTING ERROR 8.5\n";exit} 72 timeout {puts "TESTING ERROR 8.5\n";exit}
73 "1:wget:connect" 73 "wget:connect"
74} 74}
75expect { 75expect {
76 timeout {puts "TESTING ERROR 8.6\n";exit} 76 timeout {puts "TESTING ERROR 8.6\n";exit}
77 "1:wget:fopen64 index.html" {puts "OK\n";} 77 "wget:fopen64 index.html" {puts "OK\n";}
78 "1:wget:fopen index.html" {puts "OK\n";} 78 "wget:fopen index.html" {puts "OK\n";}
79} 79}
80sleep 1 80sleep 1
81 81
@@ -86,10 +86,9 @@ expect {
86} 86}
87expect { 87expect {
88 timeout {puts "TESTING ERROR 10\n";exit} 88 timeout {puts "TESTING ERROR 10\n";exit}
89 "1:rm:unlinkat index.html" 89 "rm:unlinkat index.html"
90} 90}
91sleep 1 91sleep 1
92 92
93 93
94puts "\nall done\n" 94puts "\nall done\n"
95