aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/tree.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/tree.exp')
-rwxr-xr-xtest/utils/tree.exp63
1 files changed, 63 insertions, 0 deletions
diff --git a/test/utils/tree.exp b/test/utils/tree.exp
new file mode 100755
index 000000000..a8ef763f1
--- /dev/null
+++ b/test/utils/tree.exp
@@ -0,0 +1,63 @@
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\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15after 100
16
17spawn $env(SHELL)
18send -- "firejail\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "Child process initialized"
22}
23after 100
24
25spawn $env(SHELL)
26send -- "firejail\r"
27expect {
28 timeout {puts "TESTING ERROR 2\n";exit}
29 "Child process initialized"
30}
31sleep 1
32
33spawn $env(SHELL)
34send -- "firejail --tree\r"
35expect {
36 timeout {puts "TESTING ERROR 3\n";exit}
37 ":firejail"
38}
39expect {
40 timeout {puts "TESTING ERROR 3.1\n";exit}
41 ":/bin/bash"
42}
43expect {
44 timeout {puts "TESTING ERROR 4\n";exit}
45 ":firejail"
46}
47expect {
48 timeout {puts "TESTING ERROR 4.1\n";exit}
49 ":/bin/bash"
50}
51expect {
52 timeout {puts "TESTING ERROR 5\n";exit}
53 ":firejail"
54}
55expect {
56 timeout {puts "TESTING ERROR 5.1\n";exit}
57 ":/bin/bash"
58}
59after 100
60
61
62puts "\n"
63