diff options
author | netblue30 <netblue30@yahoo.com> | 2017-10-30 09:12:52 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-10-30 09:12:52 -0400 |
commit | ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac (patch) | |
tree | 612f9b5fdd59e97e545834df1a715b0d09d0d735 /test/overlay | |
parent | testing (diff) | |
download | firejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.tar.gz firejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.tar.zst firejail-ead373fcb9a79e6cdc7aff88d3c0d6e44c9400ac.zip |
testing
Diffstat (limited to 'test/overlay')
-rwxr-xr-x | test/overlay/fs-named.exp | 4 | ||||
-rwxr-xr-x | test/overlay/fs-tmpfs.exp | 6 | ||||
-rwxr-xr-x | test/overlay/fs.exp | 6 |
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 | } |
14 | sleep 1 | 14 | sleep 1 |
15 | send -- "stty -echo\r" | ||
16 | after 100 | ||
15 | 17 | ||
16 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" | 18 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" |
17 | expect { | 19 | expect { |
@@ -51,6 +53,8 @@ expect { | |||
51 | } | 53 | } |
52 | sleep 1 | 54 | sleep 1 |
53 | 55 | ||
56 | send -- "stty -echo\r" | ||
57 | after 100 | ||
54 | send -- "cat ~/_firejail_test_file; echo done\r" | 58 | send -- "cat ~/_firejail_test_file; echo done\r" |
55 | expect { | 59 | expect { |
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 | } |
23 | sleep 1 | 23 | sleep 1 |
24 | send -- "stty -echo\r" | ||
25 | after 100 | ||
24 | 26 | ||
25 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" | 27 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" |
26 | expect { | 28 | expect { |
@@ -29,6 +31,8 @@ expect { | |||
29 | } | 31 | } |
30 | after 100 | 32 | after 100 |
31 | 33 | ||
34 | send -- "stty -echo\r" | ||
35 | after 100 | ||
32 | send -- "cat ~/_firejail_test_file; echo done\r" | 36 | send -- "cat ~/_firejail_test_file; echo done\r" |
33 | expect { | 37 | expect { |
34 | timeout {puts "TESTING ERROR 3\n";exit} | 38 | timeout {puts "TESTING ERROR 3\n";exit} |
@@ -43,6 +47,8 @@ after 100 | |||
43 | send -- "exit\r" | 47 | send -- "exit\r" |
44 | sleep 1 | 48 | sleep 1 |
45 | 49 | ||
50 | send -- "stty -echo\r" | ||
51 | after 100 | ||
46 | send -- "cat ~/_firejail_test_file; echo done\r" | 52 | send -- "cat ~/_firejail_test_file; echo done\r" |
47 | expect { | 53 | expect { |
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 | } |
14 | sleep 1 | 14 | sleep 1 |
15 | 15 | ||
16 | send -- "stty -echo\r" | ||
17 | after 100 | ||
16 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" | 18 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" |
17 | expect { | 19 | expect { |
18 | timeout {puts "TESTING ERROR 3\n";exit} | 20 | timeout {puts "TESTING ERROR 3\n";exit} |
@@ -20,6 +22,8 @@ expect { | |||
20 | } | 22 | } |
21 | after 100 | 23 | after 100 |
22 | 24 | ||
25 | send -- "stty -echo\r" | ||
26 | after 100 | ||
23 | send -- "cat ~/_firejail_test_file; echo done\r" | 27 | send -- "cat ~/_firejail_test_file; echo done\r" |
24 | expect { | 28 | expect { |
25 | timeout {puts "TESTING ERROR 4\n";exit} | 29 | timeout {puts "TESTING ERROR 4\n";exit} |
@@ -34,6 +38,8 @@ after 100 | |||
34 | send -- "exit\r" | 38 | send -- "exit\r" |
35 | sleep 2 | 39 | sleep 2 |
36 | 40 | ||
41 | send -- "stty -echo\r" | ||
42 | after 100 | ||
37 | send -- "cat ~/_firejail_test_file; echo done\r" | 43 | send -- "cat ~/_firejail_test_file; echo done\r" |
38 | expect { | 44 | expect { |
39 | timeout {puts "TESTING ERROR 5\n";exit} | 45 | timeout {puts "TESTING ERROR 5\n";exit} |