aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/option_tmpfs.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/option_tmpfs.exp')
-rwxr-xr-xtest/root/option_tmpfs.exp40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/root/option_tmpfs.exp b/test/root/option_tmpfs.exp
new file mode 100755
index 000000000..3d492dfdb
--- /dev/null
+++ b/test/root/option_tmpfs.exp
@@ -0,0 +1,40 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --tmpfs=/var\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "ls -l /var;pwd\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "total 0"
18}
19after 100
20send -- "exit\r"
21sleep 1
22
23send -- "firejail --debug-check-filename --tmpfs=\"bla&&bla\"\r"
24expect {
25 timeout {puts "TESTING ERROR 13.1\n";exit}
26 "Checking filename bla&&bla"
27}
28expect {
29 timeout {puts "TESTING ERROR 13.2\n";exit}
30 "Error:"
31}
32expect {
33 timeout {puts "TESTING ERROR 13.3\n";exit}
34 "is an invalid filename"
35}
36after 100
37
38
39puts "\nall done\n"
40