diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-21 14:37:53 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-21 14:37:53 -0400 |
commit | ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1 (patch) | |
tree | 0a923afb486b1f13ab35d26138cdbf51e0961aec /test/profiles/profile_syntax2.exp | |
parent | --read-write option (diff) | |
download | firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.gz firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.zst firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.zip |
make test-profiles
Diffstat (limited to 'test/profiles/profile_syntax2.exp')
-rwxr-xr-x | test/profiles/profile_syntax2.exp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/profiles/profile_syntax2.exp b/test/profiles/profile_syntax2.exp new file mode 100755 index 000000000..ba83731be --- /dev/null +++ b/test/profiles/profile_syntax2.exp | |||
@@ -0,0 +1,50 @@ | |||
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 --debug --profile=test2.profile\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Reading profile test2.profile" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "Reading profile test.profile" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "Mounting a new /home directory" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "Disable /bin/rmdir" {puts "Most Linux platforms\n"} | ||
26 | "Disable /usr/bin/rmdir" { puts "OpenSUSE platform\n"} | ||
27 | } | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 4\n";exit} | ||
30 | "Drop CAP_SYS_MODULE" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 5\n";exit} | ||
34 | "SECCOMP Filter" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 6\n";exit} | ||
38 | "BLACKLIST" | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 7\n";exit} | ||
42 | "mount" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 8\n";exit} | ||
46 | "Child process initialized" | ||
47 | } | ||
48 | |||
49 | sleep 1 | ||
50 | puts "\nall done\n" | ||