aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/join.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-12-01 12:30:11 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-12-01 12:30:11 -0500
commitfbcf885bcdcf71c6a9f88bed8ae38e686f5f7f21 (patch)
tree360060483d8250a1235885376c2c1493f68e41ba /test/root/join.exp
parentprivate-opt, private-srv (diff)
downloadfirejail-fbcf885bcdcf71c6a9f88bed8ae38e686f5f7f21.tar.gz
firejail-fbcf885bcdcf71c6a9f88bed8ae38e686f5f7f21.tar.zst
firejail-fbcf885bcdcf71c6a9f88bed8ae38e686f5f7f21.zip
cleanup
Diffstat (limited to 'test/root/join.exp')
-rwxr-xr-xtest/root/join.exp52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/root/join.exp b/test/root/join.exp
new file mode 100755
index 000000000..e4a4e87af
--- /dev/null
+++ b/test/root/join.exp
@@ -0,0 +1,52 @@
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
7cd /home
8spawn $env(SHELL)
9match_max 100000
10
11send -- "firejail --name=jointesting --cpu=0 --nice=2\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized"
15}
16sleep 2
17
18spawn $env(SHELL)
19send -- "firejail --join=jointesting\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid"
23}
24sleep 1
25send -- "ps aux\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "/bin/bash"
29}
30expect {
31 timeout {puts "TESTING ERROR 3\n";exit}
32 "/bin/bash"
33}
34
35send -- "exit\r"
36sleep 1
37send -- "firejail --join-network=jointesting\r"
38expect {
39 timeout {puts "TESTING ERROR 4\n";exit}
40 "Child process initialized"
41}
42send -- "exit\r"
43sleep 1
44send -- "firejail --join-filesystem=jointesting\r"
45expect {
46 timeout {puts "TESTING ERROR 5\n";exit}
47 "Child process initialized"
48}
49
50after 100
51
52puts "\nall done\n"