aboutsummaryrefslogtreecommitdiffstats
path: root/test/transmission-gtk.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/transmission-gtk.exp
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/transmission-gtk.exp')
-rwxr-xr-xtest/transmission-gtk.exp68
1 files changed, 68 insertions, 0 deletions
diff --git a/test/transmission-gtk.exp b/test/transmission-gtk.exp
new file mode 100755
index 000000000..7760ae3ad
--- /dev/null
+++ b/test/transmission-gtk.exp
@@ -0,0 +1,68 @@
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
26send -- "firejail --name=blablabla\r"
27expect {
28 timeout {puts "TESTING ERROR 4\n";exit}
29 "Child process initialized"
30}
31sleep 2
32
33spawn $env(SHELL)
34send -- "firemon --seccomp\r"
35expect {
36 timeout {puts "TESTING ERROR 5\n";exit}
37 ":firejail transmission-gtk"
38}
39expect {
40 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
41 "Seccomp: 2"
42}
43expect {
44 timeout {puts "TESTING ERROR 5.1\n";exit}
45 "name=blablabla"
46}
47sleep 1
48send -- "firemon --caps\r"
49expect {
50 timeout {puts "TESTING ERROR 6\n";exit}
51 ":firejail transmission-gtk"
52}
53expect {
54 timeout {puts "TESTING ERROR 6.1\n";exit}
55 "CapBnd"
56}
57expect {
58 timeout {puts "TESTING ERROR 6.2\n";exit}
59 "0000000000000000"
60}
61expect {
62 timeout {puts "TESTING ERROR 6.3\n";exit}
63 "name=blablabla"
64}
65sleep 1
66
67puts "\n"
68