aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/option_bind_file.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/option_bind_file.exp')
-rwxr-xr-xtest/root/option_bind_file.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/root/option_bind_file.exp b/test/root/option_bind_file.exp
new file mode 100755
index 000000000..8926e0391
--- /dev/null
+++ b/test/root/option_bind_file.exp
@@ -0,0 +1,22 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --bind=tmpfile,/etc/passwd\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "cat /etc/passwd;pwd\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "hello"
18}
19sleep 1
20
21puts "\n"
22