aboutsummaryrefslogtreecommitdiffstats
path: root/test/option-join.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/option-join.exp
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/option-join.exp')
-rwxr-xr-xtest/option-join.exp43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/option-join.exp b/test/option-join.exp
new file mode 100755
index 000000000..ad8ba73e0
--- /dev/null
+++ b/test/option-join.exp
@@ -0,0 +1,43 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=svntesting\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 3
13
14spawn $env(SHELL)
15send -- "firejail --join=svntesting;pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Switching to pid"
19}
20expect {
21 timeout {puts "TESTING ERROR 2 (join) \n";exit}
22 "@svntesting"
23}
24sleep 1
25
26
27spawn $env(SHELL)
28send -- "firejail --shutdown=svntesting;pwd\r"
29expect {
30 timeout {puts "TESTING ERROR 3\n";exit}
31 "home"
32}
33sleep 1
34
35send -- "firejail --list;pwd\r"
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 "svntesting" {puts "TESTING ERROR 5\n";exit}
39 "home"
40}
41sleep 1
42
43puts "\n"