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