aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/zsh.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/zsh.exp')
-rwxr-xr-xtest/environment/zsh.exp36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
new file mode 100755
index 000000000..578951ce0
--- /dev/null
+++ b/test/environment/zsh.exp
@@ -0,0 +1,36 @@
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 --private --tracelog --zsh\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 1
16
17send -- "find /home\r"
18expect {
19 timeout {puts "TESTING ERROR 1\n";exit}
20 ".zshrc"
21}
22
23send -- "env | grep SHELL;pwd\r"
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 "SHELL"
27}
28expect {
29 timeout {puts "TESTING ERROR 2.1\n";exit}
30 "/bin/zsh"
31}
32send -- "exit\r"
33after 100
34
35puts "\nall done\n"
36