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