diff options
Diffstat (limited to 'test/option_tree.exp')
-rwxr-xr-x | test/option_tree.exp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/option_tree.exp b/test/option_tree.exp new file mode 100755 index 000000000..1841907d1 --- /dev/null +++ b/test/option_tree.exp | |||
@@ -0,0 +1,60 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | after 100 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Child process initialized" | ||
19 | } | ||
20 | after 100 | ||
21 | |||
22 | spawn $env(SHELL) | ||
23 | send -- "firejail\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 2\n";exit} | ||
26 | "Child process initialized" | ||
27 | } | ||
28 | sleep 1 | ||
29 | |||
30 | spawn $env(SHELL) | ||
31 | send -- "firejail --tree\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 3\n";exit} | ||
34 | ":firejail" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
38 | ":/bin/bash" | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 4\n";exit} | ||
42 | ":firejail" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
46 | ":/bin/bash" | ||
47 | } | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 5\n";exit} | ||
50 | ":firejail" | ||
51 | } | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
54 | ":/bin/bash" | ||
55 | } | ||
56 | after 100 | ||
57 | |||
58 | |||
59 | puts "\n" | ||
60 | |||