aboutsummaryrefslogtreecommitdiffstats
path: root/test/hostname.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/hostname.exp')
-rwxr-xr-xtest/hostname.exp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/hostname.exp b/test/hostname.exp
new file mode 100755
index 000000000..42f78dd12
--- /dev/null
+++ b/test/hostname.exp
@@ -0,0 +1,25 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=baluba --noprofile\r"
8expect {
9 timeout {puts "TESTING ERROR 1\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "ping -c 3 baluba;pwd\r"
15expect {
16 timeout {puts "TESTING ERROR 2\n";exit}
17 "3 packets transmitted, 3 received"
18}
19expect {
20 timeout {puts "TESTING ERROR 3\n";exit}
21 "home"
22}
23sleep 1
24
25puts "all done\n"