diff options
Diffstat (limited to 'test/root/snmpd.exp')
-rwxr-xr-x | test/root/snmpd.exp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/root/snmpd.exp b/test/root/snmpd.exp deleted file mode 100755 index 63f488342..000000000 --- a/test/root/snmpd.exp +++ /dev/null | |||
@@ -1,50 +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=snmpd /etc/init.d/snmpd 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 | "snmp:/usr/sbin/snmpd" | ||
22 | } | ||
23 | sleep 2 | ||
24 | |||
25 | send -- "tail /var/log/syslog\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 3\n";exit} | ||
28 | "snmpd" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "NET-SNMP version" | ||
33 | } | ||
34 | |||
35 | send -- "firejail --join=snmpd\r" | ||
36 | sleep 2 | ||
37 | |||
38 | send -- "ls /dev\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5\n";exit} | ||
41 | "tty0" {puts "TESTING ERROR 6\n";exit} | ||
42 | "ttyS0" {puts "TESTING ERROR 6\n";exit} | ||
43 | "audio" {puts "TESTING ERROR 6\n";exit} | ||
44 | "ppp" {puts "TESTING ERROR 6\n";exit} | ||
45 | "log" | ||
46 | } | ||
47 | sleep 2 | ||
48 | |||
49 | sleep 2 | ||
50 | puts "\nall done\n" | ||