aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.1.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
commitdda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 (patch)
tree144fba235fec87d74deff110aaa71891174b3eef /test/features/2.1.exp
parent0.9.36 testing (diff)
downloadfirejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.gz
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.zst
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.zip
0.9.36 testing
Diffstat (limited to 'test/features/2.1.exp')
-rwxr-xr-xtest/features/2.1.exp62
1 files changed, 32 insertions, 30 deletions
diff --git a/test/features/2.1.exp b/test/features/2.1.exp
index 5f188988b..2e9bef8f4 100755
--- a/test/features/2.1.exp
+++ b/test/features/2.1.exp
@@ -84,37 +84,39 @@ if { $overlay == "overlay" } {
84# 84#
85# C 85# C
86# 86#
87send -- "firejail --noprofile --hostname=bingo --chroot=/tmp/chroot\r" 87if { $chroot == "chroot" } {
88expect { 88 send -- "firejail --noprofile --hostname=bingo --chroot=/tmp/chroot\r"
89 timeout {puts "TESTING ERROR 4\n";exit} 89 expect {
90 "Child process initialized" 90 timeout {puts "TESTING ERROR 4\n";exit}
91} 91 "Child process initialized"
92sleep 1 92 }
93 93 sleep 1
94send -- "hostname\r" 94
95expect { 95 send -- "hostname\r"
96 timeout {puts "TESTING ERROR 5\n";exit} 96 expect {
97 "bingo" 97 timeout {puts "TESTING ERROR 5\n";exit}
98} 98 "bingo"
99after 100 99 }
100send -- "cat /etc/hostname\r" 100 after 100
101expect { 101 send -- "cat /etc/hostname\r"
102 timeout {puts "TESTING ERROR 5.0\n";exit} 102 expect {
103 "bingo" 103 timeout {puts "TESTING ERROR 5.0\n";exit}
104} 104 "bingo"
105after 100 105 }
106send -- "getent hosts bingo\r" 106 after 100
107expect { 107 send -- "getent hosts bingo\r"
108 timeout {puts "TESTING ERROR 5.1\n";exit} 108 expect {
109 "127.0.0.1" 109 timeout {puts "TESTING ERROR 5.1\n";exit}
110} 110 "127.0.0.1"
111expect { 111 }
112 timeout {puts "TESTING ERROR 5.2\n";exit} 112 expect {
113 "bingo" 113 timeout {puts "TESTING ERROR 5.2\n";exit}
114 "bingo"
115 }
116 after 100
117 send -- "exit\r"
118 sleep 1
114} 119}
115after 100
116send -- "exit\r"
117sleep 1
118 120
119 121
120puts "\nall done\n" 122puts "\nall done\n"