diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-12 08:53:08 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-12 08:53:08 -0500 |
commit | 5c495665ae5c8a258579111ea24229f1bde52b49 (patch) | |
tree | 07bf359c07a2e05d09b3addbc6560d4d7f1ceacd /test/fs/private-homedir.exp | |
parent | bugfix: --private=dir where dir is the user home directory (diff) | |
download | firejail-5c495665ae5c8a258579111ea24229f1bde52b49.tar.gz firejail-5c495665ae5c8a258579111ea24229f1bde52b49.tar.zst firejail-5c495665ae5c8a258579111ea24229f1bde52b49.zip |
testing
Diffstat (limited to 'test/fs/private-homedir.exp')
-rwxr-xr-x | test/fs/private-homedir.exp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/fs/private-homedir.exp b/test/fs/private-homedir.exp new file mode 100755 index 000000000..35085948a --- /dev/null +++ b/test/fs/private-homedir.exp | |||
@@ -0,0 +1,25 @@ | |||
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --private=~\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 1\n";exit} | ||
13 | "Child process initialized" | ||
14 | } | ||
15 | after 100 | ||
16 | |||
17 | send -- "ls -l ~\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "total 0" | ||
21 | } | ||
22 | after 100 | ||
23 | |||
24 | puts "\nall done\n" | ||
25 | |||