aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/net_arp.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/net_arp.exp')
-rwxr-xr-xtest/network/net_arp.exp74
1 files changed, 0 insertions, 74 deletions
diff --git a/test/network/net_arp.exp b/test/network/net_arp.exp
deleted file mode 100755
index f3e1f6e25..000000000
--- a/test/network/net_arp.exp
+++ /dev/null
@@ -1,74 +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 --net=br0 sleep 20 &\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14}
15send -- "firejail --net=br0 sleep 20 &\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19}
20send -- "firejail --net=br0 sleep 20 &\r"
21expect {
22 timeout {puts "TESTING ERROR 2\n";exit}
23 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
24}
25send -- "firejail --net=br0 sleep 20 &\r"
26expect {
27 timeout {puts "TESTING ERROR 3\n";exit}
28 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
29}
30send -- "firejail --net=br0 sleep 20 &\r"
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
34}
35
36# will fail
37send -- "firejail --net=br0 sleep 20 &\r"
38expect {
39 timeout {puts "TESTING ERROR 5n";exit}
40 "cannot assign an IP address"
41}
42
43send -- "firejail --net=br0 sleep 20 &\r"
44expect {
45 timeout {puts "TESTING ERROR 6\n";exit}
46 "cannot assign an IP address"
47}
48
49# check firejail --list
50send -- "firejail --list\r"
51expect {
52 timeout {puts "TESTING ERROR 7.1\n";exit}
53 "sleep 20"
54}
55expect {
56 timeout {puts "TESTING ERROR 7.2\n";exit}
57 "sleep 20"
58}
59expect {
60 timeout {puts "TESTING ERROR 7.3\n";exit}
61 "sleep 20"
62}
63expect {
64 timeout {puts "TESTING ERROR 7.4\n";exit}
65 "sleep 20"
66}
67expect {
68 timeout {puts "TESTING ERROR 7.5\n";exit}
69 "sleep 20"
70}
71
72# wait for sandboxes to be shutdown
73sleep 30
74puts "\n"