aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs_chroot.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-31 13:07:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-31 13:07:38 -0400
commit1cb8ef59101eeaa1b325fb7f881ded148b0de1d3 (patch)
treeea114440c2236e1418a17f0e78c3050262965d98 /test/fs_chroot.exp
parentreadme.md (diff)
downloadfirejail-1cb8ef59101eeaa1b325fb7f881ded148b0de1d3.tar.gz
firejail-1cb8ef59101eeaa1b325fb7f881ded148b0de1d3.tar.zst
firejail-1cb8ef59101eeaa1b325fb7f881ded148b0de1d3.zip
--chroot testing
Diffstat (limited to 'test/fs_chroot.exp')
-rwxr-xr-xtest/fs_chroot.exp17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/fs_chroot.exp b/test/fs_chroot.exp
index 448a00a7a..4ddf8d32a 100755
--- a/test/fs_chroot.exp
+++ b/test/fs_chroot.exp
@@ -4,7 +4,7 @@ set timeout 10
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "firejail --noprofile --chroot=/tmp/chroot\r" 7send -- "firejail --chroot=/tmp/chroot\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized" 10 "Child process initialized"
@@ -13,12 +13,24 @@ sleep 1
13 13
14send -- "cd /home;pwd\r" 14send -- "cd /home;pwd\r"
15expect { 15expect {
16 timeout {puts "TESTING ERROR 3\n";exit} 16 timeout {puts "TESTING ERROR 0.1\n";exit}
17 "home" 17 "home"
18} 18}
19sleep 1 19sleep 1
20send -- "bash\r" 20send -- "bash\r"
21sleep 1 21sleep 1
22send -- "ls /; pwd\r"
23expect {
24 timeout {puts "TESTING ERROR 0.2\n";exit}
25 "this-is-my-chroot"
26}
27expect {
28 timeout {puts "TESTING ERROR 0.3\n";exit}
29 "home"
30}
31
32
33
22send -- "ps aux; pwd\r" 34send -- "ps aux; pwd\r"
23expect { 35expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 36 timeout {puts "TESTING ERROR 1\n";exit}
@@ -50,5 +62,6 @@ expect {
50} 62}
51sleep 1 63sleep 1
52 64
65
53puts "all done\n" 66puts "all done\n"
54 67