aboutsummaryrefslogtreecommitdiffstats
path: root/test/servers6.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/servers6.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/servers6.exp')
-rwxr-xr-xtest/servers6.exp75
1 files changed, 0 insertions, 75 deletions
diff --git a/test/servers6.exp b/test/servers6.exp
deleted file mode 100755
index 9ef4ea514..000000000
--- a/test/servers6.exp
+++ /dev/null
@@ -1,75 +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 nginx\r"
14sleep 2
15
16
17send -- "firejail --name=nginx /etc/init.d/nginx start\r"
18expect {
19 timeout {puts "TESTING ERROR 0\n";exit}
20 "Child process initialized"
21}
22sleep 2
23
24
25spawn $env(SHELL)
26send -- "firejail --tree\r"
27expect {
28 timeout {puts "TESTING ERROR 1\n";exit}
29 "root:nginx"
30}
31expect {
32 timeout {puts "TESTING ERROR 2\n";exit}
33 "www-data:nginx"
34}
35sleep 2
36
37
38send -- "rm index.html\r"
39sleep 1
40send -- "wget 0\r"
41expect {
42 timeout {puts "TESTING ERROR 3\n";exit}
43 "saved"
44}
45send -- "cat index.html\r"
46expect {
47 timeout {puts "TESTING ERROR 4\n";exit}
48 "DOCTYPE html PUBLIC"
49}
50
51sleep 1
52send -- "rm index.html\r"
53
54send -- "firejail --join=nginx\r"
55sleep 2
56
57send -- "ls /dev\r"
58expect {
59 timeout {puts "TESTING ERROR 5\n";exit}
60 "tty0" {puts "TESTING ERROR 6\n";exit}
61 "ttyS0" {puts "TESTING ERROR 6\n";exit}
62 "audio" {puts "TESTING ERROR 6\n";exit}
63 "ppp" {puts "TESTING ERROR 6\n";exit}
64 "log"
65}
66sleep 1
67send -- "ls -al /tmp;pwd\r"
68expect {
69 timeout {puts "TESTING ERROR 10\n";exit}
70 "X11-unix" {puts "TESTING ERROR 11\n";exit}
71 "/root"
72}
73sleep 2
74
75puts "\nall done\n"