aboutsummaryrefslogtreecommitdiffstats
path: root/test/transmission-gtk.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/transmission-gtk.exp')
-rwxr-xr-xtest/transmission-gtk.exp75
1 files changed, 0 insertions, 75 deletions
diff --git a/test/transmission-gtk.exp b/test/transmission-gtk.exp
deleted file mode 100755
index 1acfc6f94..000000000
--- a/test/transmission-gtk.exp
+++ /dev/null
@@ -1,75 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail transmission-gtk\r"
8expect {
9 timeout {puts "TESTING ERROR 1\n";exit}
10 "Child process initialized"
11}
12sleep 10
13
14spawn $env(SHELL)
15send -- "firejail --list\r"
16expect {
17 timeout {puts "TESTING ERROR 3\n";exit}
18 ":firejail"
19}
20expect {
21 timeout {puts "TESTING ERROR 3.1\n";exit}
22 "transmission-gtk"
23}
24sleep 1
25
26# grsecurity exit
27send -- "file /proc/sys/kernel/grsecurity\r"
28expect {
29 timeout {puts "TESTING ERROR - grsecurity detection\n";exit}
30 "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit}
31 "cannot open" {puts "grsecurity not present\n"}
32}
33send -- "firejail --name=blablabla\r"
34expect {
35 timeout {puts "TESTING ERROR 4\n";exit}
36 "Child process initialized"
37}
38sleep 2
39
40spawn $env(SHELL)
41send -- "firemon --seccomp\r"
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 ":firejail transmission-gtk"
45}
46expect {
47 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
48 "Seccomp: 2"
49}
50expect {
51 timeout {puts "TESTING ERROR 5.1\n";exit}
52 "name=blablabla"
53}
54sleep 1
55send -- "firemon --caps\r"
56expect {
57 timeout {puts "TESTING ERROR 6\n";exit}
58 ":firejail transmission-gtk"
59}
60expect {
61 timeout {puts "TESTING ERROR 6.1\n";exit}
62 "CapBnd"
63}
64expect {
65 timeout {puts "TESTING ERROR 6.2\n";exit}
66 "0000000000000000"
67}
68expect {
69 timeout {puts "TESTING ERROR 6.3\n";exit}
70 "name=blablabla"
71}
72sleep 1
73
74puts "\nall done\n"
75