diff options
author | netblue30 <netblue30@yahoo.com> | 2018-11-08 10:49:44 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-11-08 10:49:44 -0500 |
commit | 2acc910daf73c284965ca96bc70b4eb980c865cf (patch) | |
tree | 7b5733a8ccacba4089a7a9c067b12355372c8dc9 /test/profiles/profile_recursivity.exp | |
parent | Merge pull request #2251 from glitsj16/sort (diff) | |
download | firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.gz firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.tar.zst firejail-2acc910daf73c284965ca96bc70b4eb980c865cf.zip |
profile parser testing
Diffstat (limited to 'test/profiles/profile_recursivity.exp')
-rwxr-xr-x | test/profiles/profile_recursivity.exp | 25 |
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --profile=test3.profile\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Reading profile test3.profile" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "Reading profile test3.profile" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "maximum profile include level was reached" | ||
22 | } | ||
23 | |||
24 | after 100 | ||
25 | puts "\nall done\n" | ||