aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/list.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/list.exp')
-rwxr-xr-xtest/utils/list.exp51
1 files changed, 51 insertions, 0 deletions
diff --git a/test/utils/list.exp b/test/utils/list.exp
new file mode 100755
index 000000000..69db1f568
--- /dev/null
+++ b/test/utils/list.exp
@@ -0,0 +1,51 @@
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 --list\r"
35expect {
36 timeout {puts "TESTING ERROR 3\n";exit}
37 ":firejail"
38}
39expect {
40 timeout {puts "TESTING ERROR 4\n";exit}
41 ":firejail"
42}
43expect {
44 timeout {puts "TESTING ERROR 5\n";exit}
45 ":firejail"
46}
47after 100
48
49
50puts "\n"
51