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