aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/firemon-route.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/firemon-route.exp')
-rwxr-xr-xtest/network/firemon-route.exp52
1 files changed, 0 insertions, 52 deletions
diff --git a/test/network/firemon-route.exp b/test/network/firemon-route.exp
deleted file mode 100755
index 69cccfeae..000000000
--- a/test/network/firemon-route.exp
+++ /dev/null
@@ -1,52 +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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=test1\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14}
15sleep 1
16
17spawn $env(SHELL)
18send -- "firejail --name=test2\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22}
23sleep 1
24
25spawn $env(SHELL)
26send -- "firemon --route\r"
27expect {
28 timeout {puts "TESTING ERROR 2\n";exit}
29 "name=test1"
30}
31expect {
32 timeout {puts "TESTING ERROR 3\n";exit}
33 "0.0.0.0/0 via 192.168.1.1, dev eth0, metric 0" {puts "Debian testing\n";}
34 "0.0.0.0/0 via 192.168.1.1, dev enp0s3, metric 1024" {puts "Centos 7 testing\n";}
35 "0.0.0.0/0 via 192.168.1.1, dev enp0s3, metric 0" {puts "OpenSUSE testing\n";}
36 "0.0.0.0/0 via 192.168.1.1, dev enp0s3, metric 100" {puts "Arch testing\n";}
37}
38expect {
39 timeout {puts "TESTING ERROR 4\n";exit}
40 "10.10.30.0/24, dev br1, scope link src 10.10.30.1"
41}
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 "10.10.50.0/24, dev br3, scope link src 10.10.50.1"
45}
46expect {
47 timeout {puts "TESTING ERROR 6\n";exit}
48 "name=test2"
49}
50after 100
51
52puts "\nalldone\n"