aboutsummaryrefslogtreecommitdiffstats
path: root/test/net_local.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/net_local.exp
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/net_local.exp')
-rwxr-xr-xtest/net_local.exp49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/net_local.exp b/test/net_local.exp
new file mode 100755
index 000000000..9302ec4ef
--- /dev/null
+++ b/test/net_local.exp
@@ -0,0 +1,49 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# check ip address
8send -- "firejail --debug\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Using the local network stack"
12}
13expect {
14 timeout {puts "TESTING ERROR 4\n";exit}
15 "Child process initialized"
16}
17sleep 2
18send -- "exit\r"
19sleep 2
20
21# check loopback
22send -- "firejail\r"
23expect {
24 timeout {puts "TESTING ERROR 9\n";exit}
25 "Child process initialized"
26}
27sleep 1
28
29
30send -- "/sbin/ifconfig\r"
31expect {
32 timeout {puts "TESTING ERROR 5\n";exit}
33 "lo"
34}
35expect {
36 timeout {puts "TESTING ERROR 6\n";exit}
37 "127.0.0.1"
38}
39expect {
40 timeout {puts "TESTING ERROR 7\n";exit}
41 "255.0.0.0"
42}
43expect {
44 timeout {puts "TESTING ERROR 8\n";exit}
45 "UP"
46}
47
48puts "\n"
49