aboutsummaryrefslogtreecommitdiffstats
path: root/test/protocol-print.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/protocol-print.exp')
-rwxr-xr-xtest/protocol-print.exp21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/protocol-print.exp b/test/protocol-print.exp
new file mode 100755
index 000000000..4d1ae34d6
--- /dev/null
+++ b/test/protocol-print.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=test\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 2
13
14spawn $env(SHELL)
15send -- "firejail --protocol.print=test\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "unix,inet,inet6"
19}
20sleep 1
21puts "\nall done\n"