diff options
Diffstat (limited to 'test/root/isc-dhcp.exp')
-rwxr-xr-x | test/root/isc-dhcp.exp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/root/isc-dhcp.exp b/test/root/isc-dhcp.exp deleted file mode 100755 index dbafdb9d0..000000000 --- a/test/root/isc-dhcp.exp +++ /dev/null | |||
@@ -1,51 +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 5 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | sleep 2 | ||
16 | |||
17 | spawn $env(SHELL) | ||
18 | send -- "firejail --tree\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "root:/usr/sbin/dhcpd" | ||
22 | } | ||
23 | sleep 2 | ||
24 | |||
25 | send -- "tail -n 200 /var/log/syslog\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 3\n";exit} | ||
28 | "Internet Systems Consortium DHCP Server" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "Wrote 0 leases to leases file" | ||
33 | } | ||
34 | sleep 2 | ||
35 | |||
36 | send -- "firejail --join=dhcpd\r" | ||
37 | sleep 2 | ||
38 | |||
39 | send -- "ls /dev\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 5\n";exit} | ||
42 | "tty0" {puts "TESTING ERROR 6\n";exit} | ||
43 | "ttyS0" {puts "TESTING ERROR 6\n";exit} | ||
44 | "ppp" {puts "TESTING ERROR 6\n";exit} | ||
45 | "audio" {puts "TESTING ERROR 6\n";exit} | ||
46 | "log" | ||
47 | } | ||
48 | sleep 2 | ||
49 | |||
50 | |||
51 | puts "\nall done\n" | ||