diff options
Diffstat (limited to 'test/option-join.exp')
-rwxr-xr-x | test/option-join.exp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/option-join.exp b/test/option-join.exp new file mode 100755 index 000000000..ad8ba73e0 --- /dev/null +++ b/test/option-join.exp | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=svntesting\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 3 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --join=svntesting;pwd\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Switching to pid" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2 (join) \n";exit} | ||
22 | "@svntesting" | ||
23 | } | ||
24 | sleep 1 | ||
25 | |||
26 | |||
27 | spawn $env(SHELL) | ||
28 | send -- "firejail --shutdown=svntesting;pwd\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 3\n";exit} | ||
31 | "home" | ||
32 | } | ||
33 | sleep 1 | ||
34 | |||
35 | send -- "firejail --list;pwd\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 4\n";exit} | ||
38 | "svntesting" {puts "TESTING ERROR 5\n";exit} | ||
39 | "home" | ||
40 | } | ||
41 | sleep 1 | ||
42 | |||
43 | puts "\n" | ||