aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/join.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/join.exp')
-rwxr-xr-xtest/root/join.exp56
1 files changed, 0 insertions, 56 deletions
diff --git a/test/root/join.exp b/test/root/join.exp
deleted file mode 100755
index c488a488a..000000000
--- a/test/root/join.exp
+++ /dev/null
@@ -1,56 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 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 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
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}
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27}
28sleep 1
29send -- "ps aux\r"
30expect {
31 timeout {puts "TESTING ERROR 3\n";exit}
32 "/bin/bash"
33}
34expect {
35 timeout {puts "TESTING ERROR 4\n";exit}
36 "/bin/bash"
37}
38
39send -- "exit\r"
40sleep 1
41send -- "firejail --join-network=jointesting\r"
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
45}
46send -- "exit\r"
47sleep 1
48send -- "firejail --join-filesystem=jointesting\r"
49expect {
50 timeout {puts "TESTING ERROR 6\n";exit}
51 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
52}
53
54after 100
55
56puts "\nall done\n"