summaryrefslogtreecommitdiffstats
path: root/test/network/net_macvlan2.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-12-07 21:14:23 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-12-07 21:14:23 -0500
commitc6ea2db9110feb68fe181188384c31254cdec945 (patch)
treea9a942e7ce10ff3d0bde168fcceb51c38f7f3b4b /test/network/net_macvlan2.exp
parentfixes (diff)
downloadfirejail-c6ea2db9110feb68fe181188384c31254cdec945.tar.gz
firejail-c6ea2db9110feb68fe181188384c31254cdec945.tar.zst
firejail-c6ea2db9110feb68fe181188384c31254cdec945.zip
testing
Diffstat (limited to 'test/network/net_macvlan2.exp')
-rwxr-xr-xtest/network/net_macvlan2.exp43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/network/net_macvlan2.exp b/test/network/net_macvlan2.exp
new file mode 100755
index 000000000..7f21fc083
--- /dev/null
+++ b/test/network/net_macvlan2.exp
@@ -0,0 +1,43 @@
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 --net=eth0 --net=eth0 --net=eth0\r"
11expect {
12 timeout {puts "TESTING ERROR 0.1\n";exit}
13 "eth0-"
14}
15expect {
16 timeout {puts "TESTING ERROR 0.2\n";exit}
17 "eth1-"
18}
19expect {
20 timeout {puts "TESTING ERROR 0.3\n";exit}
21 "eth2-"
22}
23expect {
24 timeout {puts "TESTING ERROR 0.4\n";exit}
25 "eth3-"
26}
27expect {
28 timeout {puts "TESTING ERROR 0.5\n";exit}
29 "Default gateway 192.168.1.1"
30}
31expect {
32 timeout {puts "TESTING ERROR 0.6\n";exit}
33 "Child process initialized"
34}
35after 100
36send -- "exit\r"
37sleep 1
38
39
40after 100
41
42puts "\nall done\n"
43