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