aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/environment/quiet.exp3
-rwxr-xr-xtest/fcopy/dircopy.exp2
-rwxr-xr-xtest/fcopy/filecopy.exp2
-rwxr-xr-xtest/fcopy/linkcopy.exp2
-rwxr-xr-xtest/filters/seccomp-chmod-profile.exp4
-rwxr-xr-xtest/filters/seccomp-chmod.exp4
-rwxr-xr-xtest/filters/seccomp-debug-32.exp3
-rwxr-xr-xtest/filters/seccomp-debug.exp3
-rwxr-xr-xtest/fs/private-lib.exp1
-rwxr-xr-xtest/network/bandwidth.exp3
-rwxr-xr-xtest/network/hostname.exp2
-rwxr-xr-xtest/network/net_noip.exp3
-rwxr-xr-xtest/network/net_noip2.exp2
-rwxr-xr-xtest/network/net_none.exp3
-rwxr-xr-xtest/overlay/fs-named.exp4
-rwxr-xr-xtest/overlay/fs-tmpfs.exp6
-rwxr-xr-xtest/overlay/fs.exp6
-rwxr-xr-xtest/profiles/test-profile.exp2
-rwxr-xr-xtest/root/checkcfg.exp2
-rwxr-xr-xtest/root/firecfg.exp2
-rwxr-xr-xtest/root/seccomp-chmod.exp2
-rwxr-xr-xtest/root/seccomp-chown.exp2
-rwxr-xr-xtest/utils/shutdown.exp2
23 files changed, 62 insertions, 3 deletions
diff --git a/test/environment/quiet.exp b/test/environment/quiet.exp
index 3ab6d7f53..0df798f01 100755
--- a/test/environment/quiet.exp
+++ b/test/environment/quiet.exp
@@ -7,7 +7,8 @@ set timeout 4
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10# check ip address 10send -- "stty -echo\r"
11after 100
11send -- "firejail --quiet echo done\r" 12send -- "firejail --quiet echo done\r"
12expect { 13expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 14 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/fcopy/dircopy.exp b/test/fcopy/dircopy.exp
index e8462ae82..ae6ffecf0 100755
--- a/test/fcopy/dircopy.exp
+++ b/test/fcopy/dircopy.exp
@@ -118,6 +118,8 @@ expect {
118} 118}
119after 100 119after 100
120 120
121send -- "stty -echo\r"
122after 100
121send -- "diff -q src/a/b/file4 dest/a/b/file4; echo done\r" 123send -- "diff -q src/a/b/file4 dest/a/b/file4; echo done\r"
122expect { 124expect {
123 timeout {puts "TESTING ERROR 16\n";exit} 125 timeout {puts "TESTING ERROR 16\n";exit}
diff --git a/test/fcopy/filecopy.exp b/test/fcopy/filecopy.exp
index 824a22bba..8074f2ee8 100755
--- a/test/fcopy/filecopy.exp
+++ b/test/fcopy/filecopy.exp
@@ -35,6 +35,8 @@ expect {
35 "rwxrwxr-x" { puts "umask 0002\n" } 35 "rwxrwxr-x" { puts "umask 0002\n" }
36} 36}
37after 100 37after 100
38send -- "stty -echo\r"
39after 100
38 40
39send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r" 41send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r"
40expect { 42expect {
diff --git a/test/fcopy/linkcopy.exp b/test/fcopy/linkcopy.exp
index 46ee327cb..ea64329c1 100755
--- a/test/fcopy/linkcopy.exp
+++ b/test/fcopy/linkcopy.exp
@@ -34,6 +34,8 @@ expect {
34 "lrwxrwxrwx" 34 "lrwxrwxrwx"
35} 35}
36after 100 36after 100
37send -- "stty -echo\r"
38after 100
37 39
38send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r" 40send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r"
39expect { 41expect {
diff --git a/test/filters/seccomp-chmod-profile.exp b/test/filters/seccomp-chmod-profile.exp
index 22615420d..fb4d0665b 100755
--- a/test/filters/seccomp-chmod-profile.exp
+++ b/test/filters/seccomp-chmod-profile.exp
@@ -12,8 +12,10 @@ expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 "Child process initialized"
14} 14}
15sleep 2 15sleep 1
16 16
17send -- "stty -echo\r"
18after 100
17send -- "cd ~; echo done\r" 19send -- "cd ~; echo done\r"
18expect { 20expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/filters/seccomp-chmod.exp b/test/filters/seccomp-chmod.exp
index 35c6f69c2..1dd9633c2 100755
--- a/test/filters/seccomp-chmod.exp
+++ b/test/filters/seccomp-chmod.exp
@@ -12,8 +12,10 @@ expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 "Child process initialized"
14} 14}
15sleep 2 15sleep 1
16 16
17send -- "stty -echo\r"
18after 100
17send -- "cd ~; echo done\r" 19send -- "cd ~; echo done\r"
18expect { 20expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/filters/seccomp-debug-32.exp b/test/filters/seccomp-debug-32.exp
index 098b309f5..57087a0b3 100755
--- a/test/filters/seccomp-debug-32.exp
+++ b/test/filters/seccomp-debug-32.exp
@@ -7,6 +7,9 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "stty -echo\r"
11after 100
12
10send -- "firejail --debug sleep 1; echo done\r" 13send -- "firejail --debug sleep 1; echo done\r"
11expect { 14expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 15 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/filters/seccomp-debug.exp b/test/filters/seccomp-debug.exp
index 4986a6bf6..f90bbfa03 100755
--- a/test/filters/seccomp-debug.exp
+++ b/test/filters/seccomp-debug.exp
@@ -7,6 +7,9 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "stty -echo\r"
11after 100
12
10send -- "firejail --debug sleep 1; echo done\r" 13send -- "firejail --debug sleep 1; echo done\r"
11expect { 14expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 15 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp
index 20d480062..422d8ef21 100755
--- a/test/fs/private-lib.exp
+++ b/test/fs/private-lib.exp
@@ -15,6 +15,7 @@ expect {
15} 15}
16after 100 16after 100
17send -- "stty -echo\r" 17send -- "stty -echo\r"
18after 100
18 19
19send -- "cd /bin; find .\; echo done\r" 20send -- "cd /bin; find .\; echo done\r"
20expect { 21expect {
diff --git a/test/network/bandwidth.exp b/test/network/bandwidth.exp
index 25845c728..db9772789 100755
--- a/test/network/bandwidth.exp
+++ b/test/network/bandwidth.exp
@@ -54,6 +54,9 @@ expect {
54} 54}
55sleep 1 55sleep 1
56 56
57send -- "stty -echo\r"
58after 100
59
57send -- "firejail --bandwidth=test status; echo done\r" 60send -- "firejail --bandwidth=test status; echo done\r"
58expect { 61expect {
59 timeout {puts "TESTING ERROR 8\n";exit} 62 timeout {puts "TESTING ERROR 8\n";exit}
diff --git a/test/network/hostname.exp b/test/network/hostname.exp
index 0acb6a5ac..5dd14e028 100755
--- a/test/network/hostname.exp
+++ b/test/network/hostname.exp
@@ -13,6 +13,8 @@ expect {
13 "Child process initialized" 13 "Child process initialized"
14} 14}
15sleep 1 15sleep 1
16send -- "stty -echo\r"
17after 100
16 18
17send -- "ping -c 3 bingo; echo done\r" 19send -- "ping -c 3 bingo; echo done\r"
18expect { 20expect {
diff --git a/test/network/net_noip.exp b/test/network/net_noip.exp
index 9a73f618a..1bde8456e 100755
--- a/test/network/net_noip.exp
+++ b/test/network/net_noip.exp
@@ -18,6 +18,9 @@ sleep 1
18send -- "bash\r" 18send -- "bash\r"
19sleep 1 19sleep 1
20 20
21send -- "stty -echo\r"
22after 100
23
21# no default gateway configured 24# no default gateway configured
22send -- "netstat -rn;echo done\r" 25send -- "netstat -rn;echo done\r"
23expect { 26expect {
diff --git a/test/network/net_noip2.exp b/test/network/net_noip2.exp
index c01f2e4f4..1e41c1b1c 100755
--- a/test/network/net_noip2.exp
+++ b/test/network/net_noip2.exp
@@ -17,6 +17,8 @@ expect {
17sleep 1 17sleep 1
18send -- "bash\r" 18send -- "bash\r"
19sleep 1 19sleep 1
20send -- "stty -echo\r"
21after 100
20 22
21# no default gateway configured 23# no default gateway configured
22send -- "netstat -rn;echo done\r" 24send -- "netstat -rn;echo done\r"
diff --git a/test/network/net_none.exp b/test/network/net_none.exp
index 0d3701f22..b489d43f3 100755
--- a/test/network/net_none.exp
+++ b/test/network/net_none.exp
@@ -19,6 +19,9 @@ sleep 1
19# test default gw 19# test default gw
20send -- "bash\r" 20send -- "bash\r"
21sleep 1 21sleep 1
22send -- "stty -echo\r"
23after 100
24
22send -- "netstat -rn; echo done\r" 25send -- "netstat -rn; echo done\r"
23expect { 26expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 27 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/overlay/fs-named.exp b/test/overlay/fs-named.exp
index 2519a8ede..0356720bc 100755
--- a/test/overlay/fs-named.exp
+++ b/test/overlay/fs-named.exp
@@ -12,6 +12,8 @@ expect {
12 "Child process initialized" {puts "found\n"} 12 "Child process initialized" {puts "found\n"}
13} 13}
14sleep 1 14sleep 1
15send -- "stty -echo\r"
16after 100
15 17
16send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" 18send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r"
17expect { 19expect {
@@ -51,6 +53,8 @@ expect {
51} 53}
52sleep 1 54sleep 1
53 55
56send -- "stty -echo\r"
57after 100
54send -- "cat ~/_firejail_test_file; echo done\r" 58send -- "cat ~/_firejail_test_file; echo done\r"
55expect { 59expect {
56 timeout {puts "TESTING ERROR 4\n";exit} 60 timeout {puts "TESTING ERROR 4\n";exit}
diff --git a/test/overlay/fs-tmpfs.exp b/test/overlay/fs-tmpfs.exp
index 7c1b5d1df..20fa315b6 100755
--- a/test/overlay/fs-tmpfs.exp
+++ b/test/overlay/fs-tmpfs.exp
@@ -21,6 +21,8 @@ expect {
21 "Child process initialized" {puts "found\n"} 21 "Child process initialized" {puts "found\n"}
22} 22}
23sleep 1 23sleep 1
24send -- "stty -echo\r"
25after 100
24 26
25send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" 27send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r"
26expect { 28expect {
@@ -29,6 +31,8 @@ expect {
29} 31}
30after 100 32after 100
31 33
34send -- "stty -echo\r"
35after 100
32send -- "cat ~/_firejail_test_file; echo done\r" 36send -- "cat ~/_firejail_test_file; echo done\r"
33expect { 37expect {
34 timeout {puts "TESTING ERROR 3\n";exit} 38 timeout {puts "TESTING ERROR 3\n";exit}
@@ -43,6 +47,8 @@ after 100
43send -- "exit\r" 47send -- "exit\r"
44sleep 1 48sleep 1
45 49
50send -- "stty -echo\r"
51after 100
46send -- "cat ~/_firejail_test_file; echo done\r" 52send -- "cat ~/_firejail_test_file; echo done\r"
47expect { 53expect {
48 timeout {puts "TESTING ERROR 5\n";exit} 54 timeout {puts "TESTING ERROR 5\n";exit}
diff --git a/test/overlay/fs.exp b/test/overlay/fs.exp
index f8478e78b..9debe6536 100755
--- a/test/overlay/fs.exp
+++ b/test/overlay/fs.exp
@@ -13,6 +13,8 @@ expect {
13} 13}
14sleep 1 14sleep 1
15 15
16send -- "stty -echo\r"
17after 100
16send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" 18send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r"
17expect { 19expect {
18 timeout {puts "TESTING ERROR 3\n";exit} 20 timeout {puts "TESTING ERROR 3\n";exit}
@@ -20,6 +22,8 @@ expect {
20} 22}
21after 100 23after 100
22 24
25send -- "stty -echo\r"
26after 100
23send -- "cat ~/_firejail_test_file; echo done\r" 27send -- "cat ~/_firejail_test_file; echo done\r"
24expect { 28expect {
25 timeout {puts "TESTING ERROR 4\n";exit} 29 timeout {puts "TESTING ERROR 4\n";exit}
@@ -34,6 +38,8 @@ after 100
34send -- "exit\r" 38send -- "exit\r"
35sleep 2 39sleep 2
36 40
41send -- "stty -echo\r"
42after 100
37send -- "cat ~/_firejail_test_file; echo done\r" 43send -- "cat ~/_firejail_test_file; echo done\r"
38expect { 44expect {
39 timeout {puts "TESTING ERROR 5\n";exit} 45 timeout {puts "TESTING ERROR 5\n";exit}
diff --git a/test/profiles/test-profile.exp b/test/profiles/test-profile.exp
index 63fb3a150..c043f4b9e 100755
--- a/test/profiles/test-profile.exp
+++ b/test/profiles/test-profile.exp
@@ -13,6 +13,8 @@ if { $argc != 1 } {
13 exit 13 exit
14} 14}
15 15
16send -- "stty -echo\r"
17after 100
16send -- "firejail --profile=$argv echo done\r" 18send -- "firejail --profile=$argv echo done\r"
17expect { 19expect {
18 timeout {puts "TESTING ERROR 0\n";exit} 20 timeout {puts "TESTING ERROR 0\n";exit}
diff --git a/test/root/checkcfg.exp b/test/root/checkcfg.exp
index e17e9cda2..9b7402b95 100755
--- a/test/root/checkcfg.exp
+++ b/test/root/checkcfg.exp
@@ -107,6 +107,8 @@ send -- "echo \"xvfb-screen 800x600x24\" >> /etc/firejail/firejail.config\r"
107after 100 107after 100
108send -- "echo \"xvfb-extra-params blablabla\" >> /etc/firejail/firejail.config\r" 108send -- "echo \"xvfb-extra-params blablabla\" >> /etc/firejail/firejail.config\r"
109sleep 1 109sleep 1
110send -- "stty -echo\r"
111after 100
110send -- "firejail --noprofile echo done\r" 112send -- "firejail --noprofile echo done\r"
111expect { 113expect {
112 timeout {puts "TESTING ERROR 11\n";exit} 114 timeout {puts "TESTING ERROR 11\n";exit}
diff --git a/test/root/firecfg.exp b/test/root/firecfg.exp
index 8210496bb..66c956a85 100755
--- a/test/root/firecfg.exp
+++ b/test/root/firecfg.exp
@@ -17,6 +17,8 @@ expect {
17} 17}
18sleep 1 18sleep 1
19 19
20send -- "stty -echo\r"
21after 100
20send -- "file /usr/local/bin/firefox; echo done\r" 22send -- "file /usr/local/bin/firefox; echo done\r"
21expect { 23expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 24 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/root/seccomp-chmod.exp b/test/root/seccomp-chmod.exp
index 35c6f69c2..dfec5a90e 100755
--- a/test/root/seccomp-chmod.exp
+++ b/test/root/seccomp-chmod.exp
@@ -14,6 +14,8 @@ expect {
14} 14}
15sleep 2 15sleep 2
16 16
17send -- "stty -echo\r"
18after 100
17send -- "cd ~; echo done\r" 19send -- "cd ~; echo done\r"
18expect { 20expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp
index 174a35ffe..85846ad96 100755
--- a/test/root/seccomp-chown.exp
+++ b/test/root/seccomp-chown.exp
@@ -14,6 +14,8 @@ expect {
14} 14}
15sleep 2 15sleep 2
16 16
17send -- "stty -echo\r"
18after 100
17send -- "touch testfile; echo done\r" 19send -- "touch testfile; echo done\r"
18expect { 20expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
diff --git a/test/utils/shutdown.exp b/test/utils/shutdown.exp
index eb87c5d4f..fba76fa7a 100755
--- a/test/utils/shutdown.exp
+++ b/test/utils/shutdown.exp
@@ -16,6 +16,8 @@ expect {
16sleep 2 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "stty -echo\r"
20after 100
19send -- "firejail --shutdown=shutdowntesting; echo done\r" 21send -- "firejail --shutdown=shutdowntesting; echo done\r"
20expect { 22expect {
21 timeout {puts "TESTING ERROR 4\n";exit} 23 timeout {puts "TESTING ERROR 4\n";exit}