aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/profile_recursivity.exp
diff options
context:
space:
mode:
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"