diff options
Diffstat (limited to 'test/features/3.11.exp')
-rwxr-xr-x | test/features/3.11.exp | 174 |
1 files changed, 0 insertions, 174 deletions
diff --git a/test/features/3.11.exp b/test/features/3.11.exp deleted file mode 100755 index 9e59b05e7..000000000 --- a/test/features/3.11.exp +++ /dev/null | |||
@@ -1,174 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | # | ||
6 | # mkdir | ||
7 | # | ||
8 | |||
9 | set timeout 10 | ||
10 | spawn $env(SHELL) | ||
11 | match_max 100000 | ||
12 | set overlay [lindex $argv 0] | ||
13 | set chroot [lindex $argv 1] | ||
14 | |||
15 | # | ||
16 | # N | ||
17 | # | ||
18 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
19 | sleep 1 | ||
20 | |||
21 | send -- "firejail --profile=3.11.profile\r" | ||
22 | expect { | ||
23 | timeout {puts "TESTING ERROR 0\n";exit} | ||
24 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
25 | } | ||
26 | sleep 1 | ||
27 | |||
28 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 1\n";exit} | ||
31 | "drwx------" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2\n";exit} | ||
35 | "netblue netblue" { puts "Debian\n"} | ||
36 | "netblue users" { puts "Arch\n"} | ||
37 | } | ||
38 | expect { | ||
39 | timeout {puts "TESTING ERROR 3\n";exit} | ||
40 | "firejail-xy76_u9" | ||
41 | } | ||
42 | after 100 | ||
43 | |||
44 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 4\n";exit} | ||
47 | "drwx------" | ||
48 | } | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 5\n";exit} | ||
51 | "netblue netblue" { puts "Debian\n"} | ||
52 | "netblue users" { puts "Arch\n"} | ||
53 | } | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 6\n";exit} | ||
56 | "testdir" | ||
57 | } | ||
58 | after 100 | ||
59 | |||
60 | send -- "exit\r" | ||
61 | sleep 1 | ||
62 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
63 | sleep 1 | ||
64 | |||
65 | # | ||
66 | # O | ||
67 | # | ||
68 | if { $overlay == "overlay" } { | ||
69 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
70 | sleep 1 | ||
71 | |||
72 | send -- "firejail --profile=3.11.profile\r" | ||
73 | expect { | ||
74 | timeout {puts "TESTING ERROR 10\n";exit} | ||
75 | "overlay option is not available" {puts "grsecurity\n"; exit} | ||
76 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"} | ||
77 | } | ||
78 | sleep 1 | ||
79 | |||
80 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
81 | expect { | ||
82 | timeout {puts "TESTING ERROR 11\n";exit} | ||
83 | "drwx------" | ||
84 | } | ||
85 | expect { | ||
86 | timeout {puts "TESTING ERROR 12\n";exit} | ||
87 | "netblue netblue" { puts "Debian\n"} | ||
88 | "netblue users" { puts "Arch\n"} | ||
89 | } | ||
90 | expect { | ||
91 | timeout {puts "TESTING ERROR 13\n";exit} | ||
92 | "firejail-xy76_u9" | ||
93 | } | ||
94 | after 100 | ||
95 | |||
96 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
97 | expect { | ||
98 | timeout {puts "TESTING ERROR 14\n";exit} | ||
99 | "drwx------" | ||
100 | } | ||
101 | expect { | ||
102 | timeout {puts "TESTING ERROR 15\n";exit} | ||
103 | "netblue netblue" { puts "Debian\n"} | ||
104 | "netblue users" { puts "Arch\n"} | ||
105 | } | ||
106 | expect { | ||
107 | timeout {puts "TESTING ERROR 16\n";exit} | ||
108 | "testdir" | ||
109 | } | ||
110 | after 100 | ||
111 | |||
112 | send -- "exit\r" | ||
113 | sleep 1 | ||
114 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
115 | sleep 1 | ||
116 | |||
117 | |||
118 | } | ||
119 | |||
120 | # | ||
121 | # C | ||
122 | # | ||
123 | if { $chroot == "chroot" } { | ||
124 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
125 | sleep 1 | ||
126 | |||
127 | send -- "firejail --profile=3.11.profile\r" | ||
128 | expect { | ||
129 | timeout {puts "TESTING ERROR 20\n";exit} | ||
130 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
131 | } | ||
132 | sleep 1 | ||
133 | |||
134 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
135 | expect { | ||
136 | timeout {puts "TESTING ERROR 21\n";exit} | ||
137 | "drwx------" | ||
138 | } | ||
139 | expect { | ||
140 | timeout {puts "TESTING ERROR 22\n";exit} | ||
141 | "netblue netblue" { puts "Debian\n"} | ||
142 | "netblue users" { puts "Arch\n"} | ||
143 | } | ||
144 | expect { | ||
145 | timeout {puts "TESTING ERROR 23\n";exit} | ||
146 | "firejail-xy76_u9" | ||
147 | } | ||
148 | after 100 | ||
149 | |||
150 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
151 | expect { | ||
152 | timeout {puts "TESTING ERROR 24\n";exit} | ||
153 | "drwx------" | ||
154 | } | ||
155 | expect { | ||
156 | timeout {puts "TESTING ERROR 25\n";exit} | ||
157 | "netblue netblue" { puts "Debian\n"} | ||
158 | "netblue users" { puts "Arch\n"} | ||
159 | } | ||
160 | expect { | ||
161 | timeout {puts "TESTING ERROR 26\n";exit} | ||
162 | "testdir" | ||
163 | } | ||
164 | after 100 | ||
165 | |||
166 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
167 | sleep 1 | ||
168 | |||
169 | send -- "exit\r" | ||
170 | |||
171 | } | ||
172 | |||
173 | |||
174 | puts "\nall done\n" | ||