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/dash.exp | |
parent | testing (diff) | |
download | firejail-020c5449036c461ea1829e854da43429322059d6.tar.gz firejail-020c5449036c461ea1829e854da43429322059d6.tar.zst firejail-020c5449036c461ea1829e854da43429322059d6.zip |
testing
Diffstat (limited to 'test/environment/dash.exp')
-rwxr-xr-x | test/environment/dash.exp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/environment/dash.exp b/test/environment/dash.exp new file mode 100755 index 000000000..f5a60719e --- /dev/null +++ b/test/environment/dash.exp | |||
@@ -0,0 +1,41 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --private --tracelog --shell=/bin/dash\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | #send -- "ls -al;pwd\r" | ||
15 | #expect { | ||
16 | # timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | # ".zshrc" | ||
18 | #} | ||
19 | #expect { | ||
20 | # timeout {puts "TESTING ERROR 1.1\n";exit} | ||
21 | # "home" | ||
22 | #} | ||
23 | |||
24 | send -- "env | grep SHELL;pwd\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 2\n";exit} | ||
27 | "SHELL" | ||
28 | } | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
31 | "/bin/dash" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
35 | "home" | ||
36 | } | ||
37 | send -- "exit\r" | ||
38 | sleep 1 | ||
39 | |||
40 | puts "\n" | ||
41 | |||