diff options
author | netblue30 <netblue30@yahoo.com> | 2018-04-04 14:09:09 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-04-04 14:09:09 -0400 |
commit | 2e11e0dbd2850053a37453e87e2e8d8617634b3d (patch) | |
tree | d8700d07d472f97d677c9d534b9ddf7a7c9ff483 /test | |
parent | fix a0502dc5144185b6d346e92944e3359a833d2378, various enhancements (diff) | |
download | firejail-2e11e0dbd2850053a37453e87e2e8d8617634b3d.tar.gz firejail-2e11e0dbd2850053a37453e87e2e8d8617634b3d.tar.zst firejail-2e11e0dbd2850053a37453e87e2e8d8617634b3d.zip |
testing
Diffstat (limited to 'test')
-rwxr-xr-x | test/fs/fs.sh | 3 | ||||
-rwxr-xr-x | test/fs/whitelist-downloads.exp | 48 |
2 files changed, 0 insertions, 51 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh index dea037a4b..774c61750 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh | |||
@@ -64,9 +64,6 @@ echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)" | |||
64 | echo "TESTING: private whitelist (test/fs/private-whitelist.exp)" | 64 | echo "TESTING: private whitelist (test/fs/private-whitelist.exp)" |
65 | ./private-whitelist.exp | 65 | ./private-whitelist.exp |
66 | 66 | ||
67 | echo "TESTING: whitelist ~/Downloads (test/fs/whitelist-downloads.exp)" | ||
68 | ./whitelist-downloads.exp | ||
69 | |||
70 | echo "TESTING: invalid filename (test/fs/invalid_filename.exp)" | 67 | echo "TESTING: invalid filename (test/fs/invalid_filename.exp)" |
71 | ./invalid_filename.exp | 68 | ./invalid_filename.exp |
72 | 69 | ||
diff --git a/test/fs/whitelist-downloads.exp b/test/fs/whitelist-downloads.exp deleted file mode 100755 index b82ca8eea..000000000 --- a/test/fs/whitelist-downloads.exp +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2018 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "cp user-dirs.dirs /tmp/.\r" | ||
11 | after 100 | ||
12 | |||
13 | send -- "firejail --private --noprofile\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 0\n";exit} | ||
16 | "Child process initialized" | ||
17 | } | ||
18 | after 100 | ||
19 | |||
20 | send -- "firejail --force --ignore=shell --profile=/etc/firejail/firefox.profile\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 1\n";exit} | ||
23 | "cannot whitelist Downloads directory" | ||
24 | } | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 2\n";exit} | ||
27 | "Child process initialized" | ||
28 | } | ||
29 | after 100 | ||
30 | |||
31 | send -- "exit\r" | ||
32 | after 100 | ||
33 | |||
34 | send -- "cp /tmp/user-dirs.dirs ~/.config/.\r" | ||
35 | after 100 | ||
36 | |||
37 | send -- "firejail --force --ignore=shell --profile=/etc/firejail/firefox.profile\r" | ||
38 | expect { | ||
39 | timeout {puts "TESTING ERROR 3\n";exit} | ||
40 | "cannot whitelist Downloads directory" | ||
41 | } | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 4\n";exit} | ||
44 | "Child process initialized" | ||
45 | } | ||
46 | after 100 | ||
47 | |||
48 | puts "\nall done\n" | ||