aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/mkdir_mkfile.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/mkdir_mkfile.exp')
-rwxr-xr-xtest/fs/mkdir_mkfile.exp46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/fs/mkdir_mkfile.exp b/test/fs/mkdir_mkfile.exp
new file mode 100755
index 000000000..98163bf77
--- /dev/null
+++ b/test/fs/mkdir_mkfile.exp
@@ -0,0 +1,46 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10
11# testing profile and private
12send -- "firejail --private --profile=mkdir_mkfile.profile\r"
13expect {
14 timeout {puts "TESTING ERROR 0\n";exit}
15 "Child process initialized"
16}
17sleep 1
18
19send -- "find ~\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "_firejail_test_file"
23}
24expect {
25 timeout {puts "TESTING ERROR 1\n";exit}
26 "_firejail_test_dir"
27}
28expect {
29 timeout {puts "TESTING ERROR 1\n";exit}
30 "_firejail_test_dir/dir1"
31}
32expect {
33 timeout {puts "TESTING ERROR 1\n";exit}
34 "_firejail_test_dir/dir1/dir2"
35}
36expect {
37 timeout {puts "TESTING ERROR 1\n";exit}
38 "_firejail_test_dir/dir1/dir2/dir3"
39}
40expect {
41 timeout {puts "TESTING ERROR 1\n";exit}
42 "_firejail_test_dir/dir1/dir2/dir3/file1"
43}
44after 100
45
46puts "all done\n"