diff options
author | netblue30 <netblue30@yahoo.com> | 2015-12-23 12:38:13 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-12-23 12:38:13 -0500 |
commit | 686bc51e38b0718651e82818871b0bf1451c8b21 (patch) | |
tree | 521f5fc2123c4782493fc86b46cc41533acb85db /test/features/1.4.exp | |
parent | 0.9.36 testing (diff) | |
download | firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip |
0.9.36 testing
Diffstat (limited to 'test/features/1.4.exp')
-rwxr-xr-x | test/features/1.4.exp | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/test/features/1.4.exp b/test/features/1.4.exp index 82d683175..113a328c9 100755 --- a/test/features/1.4.exp +++ b/test/features/1.4.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | set timeout 10 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | ||
9 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -43,33 +44,35 @@ sleep 1 | |||
43 | # | 44 | # |
44 | # O | 45 | # O |
45 | # | 46 | # |
46 | send -- "firejail --noprofile --overlay\r" | 47 | if { $overlay == "overlay" } { |
47 | expect { | 48 | send -- "firejail --noprofile --overlay\r" |
48 | timeout {puts "TESTING ERROR 2\n";exit} | 49 | expect { |
49 | "Child process initialized" | 50 | timeout {puts "TESTING ERROR 2\n";exit} |
51 | "Child process initialized" | ||
52 | } | ||
53 | sleep 1 | ||
54 | |||
55 | send -- "ls -l /home | wc -l\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 3\n";exit} | ||
58 | "2" | ||
59 | } | ||
60 | after 100 | ||
61 | send -- "cat /etc/passwd | grep 1001 | wc -l\r" | ||
62 | expect { | ||
63 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
64 | "0" | ||
65 | } | ||
66 | after 100 | ||
67 | send -- "cat /etc/group | grep 1001 | wc -l\r" | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
70 | "0" | ||
71 | } | ||
72 | after 100 | ||
73 | send -- "exit\r" | ||
74 | sleep 1 | ||
50 | } | 75 | } |
51 | sleep 1 | ||
52 | |||
53 | send -- "ls -l /home | wc -l\r" | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 3\n";exit} | ||
56 | "2" | ||
57 | } | ||
58 | after 100 | ||
59 | send -- "cat /etc/passwd | grep 1001 | wc -l\r" | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
62 | "0" | ||
63 | } | ||
64 | after 100 | ||
65 | send -- "cat /etc/group | grep 1001 | wc -l\r" | ||
66 | expect { | ||
67 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
68 | "0" | ||
69 | } | ||
70 | after 100 | ||
71 | send -- "exit\r" | ||
72 | sleep 1 | ||
73 | 76 | ||
74 | # | 77 | # |
75 | # C | 78 | # C |