aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/join.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 20:35:52 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 20:35:52 -0400
commitc729d5927d5db964e71bfe30a269acf26786fef7 (patch)
tree192c74fa0dae843fd2b59044df6e0c78925f424a /test/utils/join.exp
parentmake testing (diff)
downloadfirejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.gz
firejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.zst
firejail-c729d5927d5db964e71bfe30a269acf26786fef7.zip
testing
Diffstat (limited to 'test/utils/join.exp')
-rwxr-xr-xtest/utils/join.exp42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/utils/join.exp b/test/utils/join.exp
new file mode 100755
index 000000000..fc94a22c3
--- /dev/null
+++ b/test/utils/join.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=svntesting\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 3
16
17spawn $env(SHELL)
18send -- "firejail --join=svntesting;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=svntesting;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 "svntesting" {puts "TESTING ERROR 5\n";exit}
38 "home"
39}
40sleep 1
41
42puts "\nall done\n"