diff options
Diffstat (limited to 'test/network/hostname.exp')
-rwxr-xr-x | test/network/hostname.exp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/network/hostname.exp b/test/network/hostname.exp deleted file mode 100755 index 42af84847..000000000 --- a/test/network/hostname.exp +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --hostname=bingo --noprofile\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 1\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | sleep 1 | ||
16 | send -- "stty -echo\r" | ||
17 | after 100 | ||
18 | |||
19 | send -- "ping -c 3 bingo; echo done\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "3 packets transmitted, 3 received" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "done" | ||
27 | } | ||
28 | send -- "exit\r" | ||
29 | after 100 | ||
30 | |||
31 | puts "all done\n" | ||