diff options
Diffstat (limited to 'test/features/3.4.exp')
-rwxr-xr-x | test/features/3.4.exp | 143 |
1 files changed, 136 insertions, 7 deletions
diff --git a/test/features/3.4.exp b/test/features/3.4.exp index f81dc6e0a..996312334 100755 --- a/test/features/3.4.exp +++ b/test/features/3.4.exp | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/usr/bin/expect -f | 1 | #!/usr/bin/expect -f |
2 | # | 2 | # |
3 | # whitelist | 3 | # whitelist home |
4 | # | 4 | # |
5 | 5 | ||
6 | set timeout 10 | 6 | set timeout 10 |
@@ -19,11 +19,54 @@ expect { | |||
19 | } | 19 | } |
20 | sleep 1 | 20 | sleep 1 |
21 | 21 | ||
22 | send -- "ls -al ~/. | wc -l\r" | 22 | send -- "ls -al | wc -l\r" |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 1\n";exit} | 24 | timeout {puts "TESTING ERROR 1.1\n";exit} |
25 | "6" | 25 | "6" |
26 | } | 26 | } |
27 | |||
28 | send -- "ls -al .bashrc\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
31 | "netblue" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 1.3\n";exit} | ||
35 | "netblue" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
39 | ".bashrc" | ||
40 | } | ||
41 | |||
42 | send -- "ls -al .Xauthority\r" | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
45 | "netblue" | ||
46 | } | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
49 | "netblue" | ||
50 | } | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 1.7\n";exit} | ||
53 | ".Xauthority" | ||
54 | } | ||
55 | |||
56 | send -- "ls -al | grep config\r" | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 1.8\n";exit} | ||
59 | "netblue" | ||
60 | } | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 1.9\n";exit} | ||
63 | "netblue" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 1.10\n";exit} | ||
67 | ".config" | ||
68 | } | ||
69 | |||
27 | after 100 | 70 | after 100 |
28 | send -- "exit\r" | 71 | send -- "exit\r" |
29 | sleep 1 | 72 | sleep 1 |
@@ -40,11 +83,54 @@ if { $overlay == "overlay" } { | |||
40 | } | 83 | } |
41 | sleep 1 | 84 | sleep 1 |
42 | 85 | ||
43 | send -- "ls -al ~/. | wc -l\r" | 86 | send -- "ls -al | wc -l\r" |
44 | expect { | 87 | expect { |
45 | timeout {puts "TESTING ERROR 1\n";exit} | 88 | timeout {puts "TESTING ERROR 3.1\n";exit} |
46 | "6" | 89 | "6" |
47 | } | 90 | } |
91 | |||
92 | send -- "ls -al .bashrc\r" | ||
93 | expect { | ||
94 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
95 | "netblue" | ||
96 | } | ||
97 | expect { | ||
98 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
99 | "netblue" | ||
100 | } | ||
101 | expect { | ||
102 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
103 | ".bashrc" | ||
104 | } | ||
105 | |||
106 | send -- "ls -al .Xauthority\r" | ||
107 | expect { | ||
108 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
109 | "netblue" | ||
110 | } | ||
111 | expect { | ||
112 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
113 | "netblue" | ||
114 | } | ||
115 | expect { | ||
116 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
117 | ".Xauthority" | ||
118 | } | ||
119 | |||
120 | send -- "ls -al | grep config\r" | ||
121 | expect { | ||
122 | timeout {puts "TESTING ERROR 3.8\n";exit} | ||
123 | "netblue" | ||
124 | } | ||
125 | expect { | ||
126 | timeout {puts "TESTING ERROR 3.9\n";exit} | ||
127 | "netblue" | ||
128 | } | ||
129 | expect { | ||
130 | timeout {puts "TESTING ERROR 3.10\n";exit} | ||
131 | ".config" | ||
132 | } | ||
133 | |||
48 | after 100 | 134 | after 100 |
49 | send -- "exit\r" | 135 | send -- "exit\r" |
50 | sleep 1 | 136 | sleep 1 |
@@ -61,11 +147,54 @@ if { $chroot == "chroot" } { | |||
61 | } | 147 | } |
62 | sleep 1 | 148 | sleep 1 |
63 | 149 | ||
64 | send -- "ls -al ~/. | wc -l\r" | 150 | send -- "ls -al | wc -l\r" |
65 | expect { | 151 | expect { |
66 | timeout {puts "TESTING ERROR 1\n";exit} | 152 | timeout {puts "TESTING ERROR 5.1\n";exit} |
67 | "6" | 153 | "6" |
68 | } | 154 | } |
155 | |||
156 | send -- "ls -al .bashrc\r" | ||
157 | expect { | ||
158 | timeout {puts "TESTING ERROR 5.2\n";exit} | ||
159 | "netblue" | ||
160 | } | ||
161 | expect { | ||
162 | timeout {puts "TESTING ERROR 5.3\n";exit} | ||
163 | "netblue" | ||
164 | } | ||
165 | expect { | ||
166 | timeout {puts "TESTING ERROR 5.4\n";exit} | ||
167 | ".bashrc" | ||
168 | } | ||
169 | |||
170 | send -- "ls -al .Xauthority\r" | ||
171 | expect { | ||
172 | timeout {puts "TESTING ERROR 5.5\n";exit} | ||
173 | "netblue" | ||
174 | } | ||
175 | expect { | ||
176 | timeout {puts "TESTING ERROR 5.6\n";exit} | ||
177 | "netblue" | ||
178 | } | ||
179 | expect { | ||
180 | timeout {puts "TESTING ERROR 5.7\n";exit} | ||
181 | ".Xauthority" | ||
182 | } | ||
183 | |||
184 | send -- "ls -al | grep config\r" | ||
185 | expect { | ||
186 | timeout {puts "TESTING ERROR 5.8\n";exit} | ||
187 | "netblue" | ||
188 | } | ||
189 | expect { | ||
190 | timeout {puts "TESTING ERROR 5.9\n";exit} | ||
191 | "netblue" | ||
192 | } | ||
193 | expect { | ||
194 | timeout {puts "TESTING ERROR 5.10\n";exit} | ||
195 | ".config" | ||
196 | } | ||
197 | |||
69 | after 100 | 198 | after 100 |
70 | send -- "exit\r" | 199 | send -- "exit\r" |
71 | sleep 1 | 200 | sleep 1 |