aboutsummaryrefslogtreecommitdiffstats
path: root/test/option_list.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/option_list.exp')
-rwxr-xr-xtest/option_list.exp48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/option_list.exp b/test/option_list.exp
new file mode 100755
index 000000000..b9c73e52b
--- /dev/null
+++ b/test/option_list.exp
@@ -0,0 +1,48 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12after 100
13
14spawn $env(SHELL)
15send -- "firejail\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Child process initialized"
19}
20after 100
21
22spawn $env(SHELL)
23send -- "firejail\r"
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 "Child process initialized"
27}
28sleep 1
29
30spawn $env(SHELL)
31send -- "firejail --list\r"
32expect {
33 timeout {puts "TESTING ERROR 3\n";exit}
34 ":firejail"
35}
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 ":firejail"
39}
40expect {
41 timeout {puts "TESTING ERROR 5\n";exit}
42 ":firejail"
43}
44after 100
45
46
47puts "\n"
48