aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/dash.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/dash.exp')
-rwxr-xr-xtest/environment/dash.exp42
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
3set timeout 10
4cd /home
5spawn $env(SHELL)
6match_max 100000
7
8send -- "firejail --private --tracelog --shell=/bin/dash\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13sleep 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
25send -- "env | grep SHELL;pwd\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "SHELL"
29}
30expect {
31 timeout {puts "TESTING ERROR 2.1\n";exit}
32 "/bin/dash"
33}
34expect {
35 timeout {puts "TESTING ERROR 2.2\n";exit}
36 "home"
37}
38send -- "exit\r"
39after 100
40
41puts "\n"
42