aboutsummaryrefslogtreecommitdiffstats
path: root/test/servers2.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
commitfc116c063938d5e141d5fbc38e8013d9832ef315 (patch)
tree382b401cc0a9efeda1509a88bd430cd68b741346 /test/servers2.exp
parentfixed /etc/login.def reading on Mageia systems (diff)
downloadfirejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.gz
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.zst
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.zip
testing
Diffstat (limited to 'test/servers2.exp')
-rwxr-xr-xtest/servers2.exp57
1 files changed, 0 insertions, 57 deletions
diff --git a/test/servers2.exp b/test/servers2.exp
deleted file mode 100755
index 90e34470f..000000000
--- a/test/servers2.exp
+++ /dev/null
@@ -1,57 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 5
4spawn $env(SHELL)
5match_max 100000
6
7send -- "sudo ls; sudo whoami; sudo pwd\r"
8expect {
9 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
10 "root"
11}
12
13send -- "pkill snmpd\r"
14sleep 2
15
16
17send -- "firejail --name=snmpd /etc/init.d/snmpd start\r"
18expect {
19 timeout {puts "TESTING ERROR 0\n";exit}
20 "Child process initialized"
21}
22sleep 2
23
24spawn $env(SHELL)
25send -- "firejail --tree\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "snmp:/usr/sbin/snmpd"
29}
30sleep 2
31
32send -- "tail /var/log/syslog\r"
33expect {
34 timeout {puts "TESTING ERROR 3\n";exit}
35 "snmpd"
36}
37expect {
38 timeout {puts "TESTING ERROR 4\n";exit}
39 "NET-SNMP version"
40}
41
42send -- "firejail --join=snmpd\r"
43sleep 2
44
45send -- "ls /dev\r"
46expect {
47 timeout {puts "TESTING ERROR 5\n";exit}
48 "tty0" {puts "TESTING ERROR 6\n";exit}
49 "ttyS0" {puts "TESTING ERROR 6\n";exit}
50 "audio" {puts "TESTING ERROR 6\n";exit}
51 "ppp" {puts "TESTING ERROR 6\n";exit}
52 "log"
53}
54sleep 2
55
56sleep 2
57puts "\nall done\n"