aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/firemon-interfaces.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-10 07:18:24 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-10 07:18:24 -0500
commit334c79edd83377a09c138800c0a2fefaf9c7981f (patch)
tree4511f4a41338d8a59c302b10588c974aeffd5a46 /test/network/firemon-interfaces.exp
parentfixed --top (diff)
downloadfirejail-334c79edd83377a09c138800c0a2fefaf9c7981f.tar.gz
firejail-334c79edd83377a09c138800c0a2fefaf9c7981f.tar.zst
firejail-334c79edd83377a09c138800c0a2fefaf9c7981f.zip
testing
Diffstat (limited to 'test/network/firemon-interfaces.exp')
-rwxr-xr-xtest/network/firemon-interfaces.exp67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/network/firemon-interfaces.exp b/test/network/firemon-interfaces.exp
new file mode 100755
index 000000000..deb8594af
--- /dev/null
+++ b/test/network/firemon-interfaces.exp
@@ -0,0 +1,67 @@
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 --net=eth0 --name=test1\r"
11expect {
12 timeout {puts "TESTING ERROR 9\n";exit}
13 "Child process initialized"
14}
15sleep 1
16
17spawn $env(SHELL)
18send -- "firejail --net=eth0 --name=test2\r"
19expect {
20 timeout {puts "TESTING ERROR 9\n";exit}
21 "Child process initialized"
22}
23sleep 1
24
25spawn $env(SHELL)
26send -- "firemon --interface\r"
27expect {
28 timeout {puts "TESTING ERROR 9\n";exit}
29 "Link status"
30}
31expect {
32 timeout {puts "TESTING ERROR 9\n";exit}
33 "lo UP"
34}
35expect {
36 timeout {puts "TESTING ERROR 9\n";exit}
37 "eth0-"
38}
39expect {
40 timeout {puts "TESTING ERROR 9\n";exit}
41 "IPv4 status"
42}
43expect {
44 timeout {puts "TESTING ERROR 9\n";exit}
45 "lo UP"
46}
47expect {
48 timeout {puts "TESTING ERROR 9\n";exit}
49 "eth0-"
50}
51expect {
52 timeout {puts "TESTING ERROR 9\n";exit}
53 "IPv6 status"
54}
55expect {
56 timeout {puts "TESTING ERROR 9\n";exit}
57 "lo UP"
58}
59expect {
60 timeout {puts "TESTING ERROR 9\n";exit}
61 "eth0-"
62}
63
64after 100
65
66puts "\n"
67