aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.5.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/2.5.exp')
-rwxr-xr-xtest/features/2.5.exp114
1 files changed, 0 insertions, 114 deletions
diff --git a/test/features/2.5.exp b/test/features/2.5.exp
deleted file mode 100755
index ad462e440..000000000
--- a/test/features/2.5.exp
+++ /dev/null
@@ -1,114 +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#
18send -- "firejail --noprofile --interface=eth0.5\r"
19expect {
20 timeout {puts "TESTING ERROR 0\n";exit}
21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22}
23sleep 1
24
25send -- "/sbin/ifconfig\r"
26expect {
27 timeout {puts "TESTING ERROR 1.4\n";exit}
28 "eth0.5"
29}
30expect {
31 timeout {puts "TESTING ERROR 1.5n";exit}
32 "Link"
33}
34expect {
35 timeout {puts "TESTING ERROR 1.6\n";exit}
36 "10.10.205.10"
37}
38expect {
39 timeout {puts "TESTING ERROR 1.7\n";exit}
40 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
41}
42after 100
43send -- "exit\r"
44sleep 1
45
46#
47# O
48#
49if { $overlay == "overlay" } {
50 send -- "firejail --noprofile --overlay --interface=eth0.6\r"
51 expect {
52 timeout {puts "TESTING ERROR 2\n";exit}
53 "overlay option is not available" {puts "grsecurity\n"; exit}
54 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
55 }
56 sleep 1
57
58 send -- "/sbin/ifconfig\r"
59 expect {
60 timeout {puts "TESTING ERROR 3.4\n";exit}
61 "eth0.6"
62 }
63 expect {
64 timeout {puts "TESTING ERROR 3.5n";exit}
65 "Link"
66 }
67 expect {
68 timeout {puts "TESTING ERROR 3.6\n";exit}
69 "10.10.206.10"
70 }
71 expect {
72 timeout {puts "TESTING ERROR 3.7\n";exit}
73 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
74 }
75 after 100
76 send -- "exit\r"
77 sleep 1
78}
79
80#
81# C
82#
83if { $chroot == "chroot" } {
84 send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r"
85 expect {
86 timeout {puts "TESTING ERROR 4\n";exit}
87 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
88 }
89 sleep 1
90
91 send -- "/sbin/ifconfig\r"
92 expect {
93 timeout {puts "TESTING ERROR 5.4\n";exit}
94 "eth0.7"
95 }
96 expect {
97 timeout {puts "TESTING ERROR 5.5n";exit}
98 "Link"
99 }
100 expect {
101 timeout {puts "TESTING ERROR 5.6\n";exit}
102 "10.10.207.10"
103 }
104 expect {
105 timeout {puts "TESTING ERROR 5.7\n";exit}
106 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
107 }
108 after 100
109 send -- "exit\r"
110 sleep 1
111}
112
113
114puts "\nall done\n"