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