aboutsummaryrefslogtreecommitdiffstats
path: root/test/overlay
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-10-30 09:12:52 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-10-30 09:12:52 -0400
commitead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac (patch)
tree612f9b5fdd59e97e545834df1a715b0d09d0d735 /test/overlay
parenttesting (diff)
downloadfirejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.tar.gz
firejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.tar.zst
firejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.zip
testing
Diffstat (limited to 'test/overlay')
-rwxr-xr-xtest/overlay/fs-named.exp4
-rwxr-xr-xtest/overlay/fs-tmpfs.exp6
-rwxr-xr-xtest/overlay/fs.exp6
3 files changed, 16 insertions, 0 deletions
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}