aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/interface.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/interface.exp')
-rwxr-xr-xtest/network/interface.exp63
1 files changed, 0 insertions, 63 deletions
diff --git a/test/network/interface.exp b/test/network/interface.exp
deleted file mode 100755
index 2bcc6e88b..000000000
--- a/test/network/interface.exp
+++ /dev/null
@@ -1,63 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5#
6# interface
7#
8
9set timeout 10
10spawn $env(SHELL)
11match_max 100000
12set overlay [lindex $argv 0]
13set chroot [lindex $argv 1]
14
15#
16# N
17#
18# todo: seems to be unable to find interface eth0.7
19#send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6 --interface=eth0.7\r"
20send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6\r"
21expect {
22 timeout {puts "TESTING ERROR 0\n";exit}
23 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
24}
25sleep 1
26
27send -- "/sbin/ifconfig\r"
28expect {
29 timeout {puts "TESTING ERROR 1\n";exit}
30 "eth0.5"
31}
32expect {
33 timeout {puts "TESTING ERROR 2\n";exit}
34 "Link" {puts "old net-tools\n";}
35 "flags" {puts "new net-tools\n";}
36}
37expect {
38 timeout {puts "TESTING ERROR 3\n";exit}
39 "10.10.205.10"
40}
41after 100
42
43send -- "/sbin/ifconfig\r"
44expect {
45 timeout {puts "TESTING ERROR 5\n";exit}
46 "eth0.6"
47}
48expect {
49 timeout {puts "TESTING ERROR 6\n";exit}
50 "Link" {puts "old net-tools\n";}
51 "flags" {puts "new net-tools\n";}
52}
53expect {
54 timeout {puts "TESTING ERROR 7\n";exit}
55 "10.10.206.10"
56}
57after 100
58
59send -- "exit\r"
60sleep 1
61
62
63puts "\nall done\n"