diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-23 08:53:07 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-23 08:53:07 -0400 |
commit | 2905b9f9ab5c5ed6f9210d1d843a8bcf41451854 (patch) | |
tree | d3bb968dbcb9f22856de345d0df5ecf2a44d594f /test/utils/list.exp | |
parent | quiterss profile (diff) | |
download | firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.gz firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.zst firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.zip |
make test-utils
Diffstat (limited to 'test/utils/list.exp')
-rwxr-xr-x | test/utils/list.exp | 51 |
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Child process initialized" | ||
14 | } | ||
15 | after 100 | ||
16 | |||
17 | spawn $env(SHELL) | ||
18 | send -- "firejail\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "Child process initialized" | ||
22 | } | ||
23 | after 100 | ||
24 | |||
25 | spawn $env(SHELL) | ||
26 | send -- "firejail\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 2\n";exit} | ||
29 | "Child process initialized" | ||
30 | } | ||
31 | sleep 1 | ||
32 | |||
33 | spawn $env(SHELL) | ||
34 | send -- "firejail --list\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 3\n";exit} | ||
37 | ":firejail" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 4\n";exit} | ||
41 | ":firejail" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5\n";exit} | ||
45 | ":firejail" | ||
46 | } | ||
47 | after 100 | ||
48 | |||
49 | |||
50 | puts "\n" | ||
51 | |||