diff options
Diffstat (limited to 'test/utils/profile_print.exp')
-rwxr-xr-x | test/utils/profile_print.exp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/utils/profile_print.exp b/test/utils/profile_print.exp new file mode 100755 index 000000000..20d88a264 --- /dev/null +++ b/test/utils/profile_print.exp | |||
@@ -0,0 +1,27 @@ | |||
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 | |||
11 | send -- "firejail --name=ftest\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | after 100 | ||
17 | |||
18 | spawn $env(SHELL) | ||
19 | send -- "firejail --profile.print=ftest\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1\n";exit} | ||
22 | "/etc/firejail/default.profile" | ||
23 | } | ||
24 | |||
25 | |||
26 | after 100 | ||
27 | puts "all done\n" | ||