aboutsummaryrefslogtreecommitdiffstats
path: root/test/network
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
commitfc116c063938d5e141d5fbc38e8013d9832ef315 (patch)
tree382b401cc0a9efeda1509a88bd430cd68b741346 /test/network
parentfixed /etc/login.def reading on Mageia systems (diff)
downloadfirejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.gz
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.zst
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.zip
testing
Diffstat (limited to 'test/network')
-rwxr-xr-xtest/network/net_interface.exp93
1 files changed, 0 insertions, 93 deletions
diff --git a/test/network/net_interface.exp b/test/network/net_interface.exp
deleted file mode 100755
index 2f87024d8..000000000
--- a/test/network/net_interface.exp
+++ /dev/null
@@ -1,93 +0,0 @@
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 -- "ip link add link eth0 name eth0.100 type vlan id 100\r"
11sleep 1
12send -- "ip link add link eth0 name eth0.101 type vlan id 101\r"
13sleep 1
14send -- "ip link add link eth0 name eth0.102 type vlan id 102\r"
15sleep 1
16send -- "ip link add link eth0 name eth0.103 type vlan id 103\r"
17sleep 1
18send -- "ip link add link eth0 name eth0.104 type vlan id 104\r"
19sleep 1
20puts "\n"
21
22send -- "/sbin/ifconfig eth0.100 10.200.0.1/24\r"
23sleep 1
24send -- "/sbin/ifconfig eth0.101 10.200.1.1/24\r"
25sleep 1
26send -- "/sbin/ifconfig eth0.102 10.200.2.1/24\r"
27sleep 1
28send -- "/sbin/ifconfig eth0.103 10.200.3.1/24\r"
29sleep 1
30send -- "/sbin/ifconfig eth0.104 10.200.4.1/24\r"
31sleep 1
32puts "\n"
33
34
35
36send -- "firejail --noprofile --interface=eth0.100 --interface=eth0.101 --interface=eth0.102 --interface=eth0.103 --interface=eth0.104\r"
37expect {
38 timeout {puts "TESTING ERROR 0\n";exit}
39 "maximum 4 interfaces are allowed"
40}
41sleep 1
42
43send -- "firejail --noprofile --interface=eth0.100 --interface=eth0.101 --interface=eth0.102 --interface=eth0.103\r"
44expect {
45 timeout {puts "TESTING ERROR 1\n";exit}
46 "eth0.100"
47}
48expect {
49 timeout {puts "TESTING ERROR 1.1\n";exit}
50 "UP"
51}
52expect {
53 timeout {puts "TESTING ERROR 2\n";exit}
54 "eth0.101"
55}
56expect {
57 timeout {puts "TESTING ERROR 2.2\n";exit}
58 "UP"
59}
60expect {
61 timeout {puts "TESTING ERROR 3\n";exit}
62 "eth0.102"
63}
64expect {
65 timeout {puts "TESTING ERROR 3.1\n";exit}
66 "UP"
67}
68expect {
69 timeout {puts "TESTING ERROR 4\n";exit}
70 "eth0.103"
71}
72expect {
73 timeout {puts "TESTING ERROR 4.1\n";exit}
74 "UP"
75}
76sleep 1
77send -- "exit\r"
78sleep 1
79
80send -- "firejail --noprofile --interface=eth0.104\r"
81expect {
82 timeout {puts "TESTING ERROR 5\n";exit}
83 "eth0.104"
84}
85expect {
86 timeout {puts "TESTING ERROR 5.1\n";exit}
87 "UP"
88}
89send -- "exit\r"
90after 100
91
92puts "all done\n"
93