aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/profile_syntax2.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
commitad2f7bc496e3cc83bca2381515312dd2ef6fc7f1 (patch)
tree0a923afb486b1f13ab35d26138cdbf51e0961aec /test/profiles/profile_syntax2.exp
parent--read-write option (diff)
downloadfirejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.gz
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.zst
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.zip
make test-profiles
Diffstat (limited to 'test/profiles/profile_syntax2.exp')
-rwxr-xr-xtest/profiles/profile_syntax2.exp50
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --debug --profile=test2.profile\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Reading profile test2.profile"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Reading profile test.profile"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "Mounting a new /home directory"
22}
23expect {
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}
28expect {
29 timeout {puts "TESTING ERROR 4\n";exit}
30 "Drop CAP_SYS_MODULE"
31}
32expect {
33 timeout {puts "TESTING ERROR 5\n";exit}
34 "SECCOMP Filter"
35}
36expect {
37 timeout {puts "TESTING ERROR 6\n";exit}
38 "BLACKLIST"
39}
40expect {
41 timeout {puts "TESTING ERROR 7\n";exit}
42 "mount"
43}
44expect {
45 timeout {puts "TESTING ERROR 8\n";exit}
46 "Child process initialized"
47}
48
49sleep 1
50puts "\nall done\n"