aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/list.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
commit2905b9f9ab5c5ed6f9210d1d843a8bcf41451854 (patch)
treed3bb968dbcb9f22856de345d0df5ecf2a44d594f /test/utils/list.exp
parentquiterss profile (diff)
downloadfirejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.gz
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.zst
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.zip
make test-utils
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