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