diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
commit | 1379851360349d6617ad32944a25ee5e2bb74fc2 (patch) | |
tree | f69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/transmission-gtk.exp | |
parent | delete files (diff) | |
download | firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip |
Baseline firejail 0.9.28
Diffstat (limited to 'test/transmission-gtk.exp')
-rwxr-xr-x | test/transmission-gtk.exp | 68 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail transmission-gtk\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 1\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 10 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --list\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 3\n";exit} | ||
18 | ":firejail" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
22 | "transmission-gtk" | ||
23 | } | ||
24 | sleep 1 | ||
25 | |||
26 | send -- "firejail --name=blablabla\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 4\n";exit} | ||
29 | "Child process initialized" | ||
30 | } | ||
31 | sleep 2 | ||
32 | |||
33 | spawn $env(SHELL) | ||
34 | send -- "firemon --seccomp\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 5\n";exit} | ||
37 | ":firejail transmission-gtk" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | ||
41 | "Seccomp: 2" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
45 | "name=blablabla" | ||
46 | } | ||
47 | sleep 1 | ||
48 | send -- "firemon --caps\r" | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 6\n";exit} | ||
51 | ":firejail transmission-gtk" | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
55 | "CapBnd" | ||
56 | } | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
59 | "0000000000000000" | ||
60 | } | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
63 | "name=blablabla" | ||
64 | } | ||
65 | sleep 1 | ||
66 | |||
67 | puts "\n" | ||
68 | |||