aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/profile_recursivity.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-11-08 10:49:44 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2018-11-08 10:49:44 -0500
commit2acc910daf73c284965ca96bc70b4eb980c865cf (patch)
tree7b5733a8ccacba4089a7a9c067b12355372c8dc9 /test/profiles/profile_recursivity.exp
parentMerge pull request #2251 from glitsj16/sort (diff)
downloadfirejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.gz
firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.zst
firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.zip
profile parser testing
Diffstat (limited to 'test/profiles/profile_recursivity.exp')
-rwxr-xr-xtest/profiles/profile_recursivity.exp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/profiles/profile_recursivity.exp b/test/profiles/profile_recursivity.exp
new file mode 100755
index 000000000..66e4510bf
--- /dev/null
+++ b/test/profiles/profile_recursivity.exp
@@ -0,0 +1,25 @@
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --profile=test3.profile\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Reading profile test3.profile"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Reading profile test3.profile"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "maximum profile include level was reached"
22}
23
24after 100
25puts "\nall done\n"