diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
commit | 020c5449036c461ea1829e854da43429322059d6 (patch) | |
tree | 46ca4f358fcc1c50be77586ccdb0e02170d81e1d /test/environment/csh.exp | |
parent | testing (diff) | |
download | firejail-020c5449036c461ea1829e854da43429322059d6.tar.gz firejail-020c5449036c461ea1829e854da43429322059d6.tar.zst firejail-020c5449036c461ea1829e854da43429322059d6.zip |
testing
Diffstat (limited to 'test/environment/csh.exp')
-rwxr-xr-x | test/environment/csh.exp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/environment/csh.exp b/test/environment/csh.exp new file mode 100755 index 000000000..10ad3607e --- /dev/null +++ b/test/environment/csh.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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --private --tracelog --csh\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Child process initialized" | ||
14 | } | ||
15 | sleep 1 | ||
16 | |||
17 | send -- "ls -al;pwd\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 1\n";exit} | ||
20 | ".cshrc" | ||
21 | } | ||
22 | expect { | ||
23 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
24 | "home" | ||
25 | } | ||
26 | send -- "env | grep SHELL;pwd\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 2\n";exit} | ||
29 | "SHELL" | ||
30 | } | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
33 | "/bin/csh" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
37 | "home" | ||
38 | } | ||
39 | send -- "exit\r" | ||
40 | sleep 1 | ||
41 | |||
42 | puts "\n" | ||
43 | |||