aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.1.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
commit686bc51e38b0718651e82818871b0bf1451c8b21 (patch)
tree521f5fc2123c4782493fc86b46cc41533acb85db /test/features/2.1.exp
parent0.9.36 testing (diff)
downloadfirejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip
0.9.36 testing
Diffstat (limited to 'test/features/2.1.exp')
-rwxr-xr-xtest/features/2.1.exp63
1 files changed, 33 insertions, 30 deletions
diff --git a/test/features/2.1.exp b/test/features/2.1.exp
index a2ae321ce..5f188988b 100755
--- a/test/features/2.1.exp
+++ b/test/features/2.1.exp
@@ -6,6 +6,7 @@
6set timeout 10 6set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set overlay [lindex $argv 0]
9 10
10# 11#
11# N 12# N
@@ -46,37 +47,39 @@ sleep 1
46# 47#
47# O 48# O
48# 49#
49send -- "firejail --noprofile --hostname=bingo --overlay\r" 50if { $overlay == "overlay" } {
50expect { 51 send -- "firejail --noprofile --hostname=bingo --overlay\r"
51 timeout {puts "TESTING ERROR 2\n";exit} 52 expect {
52 "Child process initialized" 53 timeout {puts "TESTING ERROR 2\n";exit}
53} 54 "Child process initialized"
54sleep 1 55 }
55 56 sleep 1
56send -- "hostname\r" 57
57expect { 58 send -- "hostname\r"
58 timeout {puts "TESTING ERROR 3\n";exit} 59 expect {
59 "bingo" 60 timeout {puts "TESTING ERROR 3\n";exit}
60} 61 "bingo"
61after 100 62 }
62send -- "cat /etc/hostname\r" 63 after 100
63expect { 64 send -- "cat /etc/hostname\r"
64 timeout {puts "TESTING ERROR 3.0\n";exit} 65 expect {
65 "bingo" 66 timeout {puts "TESTING ERROR 3.0\n";exit}
66} 67 "bingo"
67after 100 68 }
68send -- "getent hosts bingo\r" 69 after 100
69expect { 70 send -- "getent hosts bingo\r"
70 timeout {puts "TESTING ERROR 3.1\n";exit} 71 expect {
71 "127.0.0.1" 72 timeout {puts "TESTING ERROR 3.1\n";exit}
73 "127.0.0.1"
74 }
75 expect {
76 timeout {puts "TESTING ERROR 3.2\n";exit}
77 "bingo"
78 }
79 after 100
80 send -- "exit\r"
81 sleep 1
72} 82}
73expect {
74 timeout {puts "TESTING ERROR 3.2\n";exit}
75 "bingo"
76}
77after 100
78send -- "exit\r"
79sleep 1
80 83
81# 84#
82# C 85# C