aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/zsh.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/zsh.exp')
-rwxr-xr-xtest/environment/zsh.exp43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
new file mode 100755
index 000000000..2604b2be5
--- /dev/null
+++ b/test/environment/zsh.exp
@@ -0,0 +1,43 @@
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 -- "ls -al;pwd\r"
18expect {
19 timeout {puts "TESTING ERROR 1\n";exit}
20 ".zshrc"
21}
22expect {
23 timeout {puts "TESTING ERROR 1.1\n";exit}
24 "home"
25}
26send -- "env | grep SHELL;pwd\r"
27expect {
28 timeout {puts "TESTING ERROR 2\n";exit}
29 "SHELL"
30}
31expect {
32 timeout {puts "TESTING ERROR 2.1\n";exit}
33 "/usr/bin/zsh"
34}
35expect {
36 timeout {puts "TESTING ERROR 2.2\n";exit}
37 "home"
38}
39send -- "exit\r"
40sleep 1
41
42puts "\n"
43