diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-15 12:38:58 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-15 12:38:58 -0400 |
commit | 84b984b7d1925bd937606e18e0605d7517f5f686 (patch) | |
tree | 9e0ace227d8375cd5c73775f62a3a3313fa83cf8 /test/vlc.exp | |
parent | new syscalls added to default seccomp filter (diff) | |
download | firejail-84b984b7d1925bd937606e18e0605d7517f5f686.tar.gz firejail-84b984b7d1925bd937606e18e0605d7517f5f686.tar.zst firejail-84b984b7d1925bd937606e18e0605d7517f5f686.zip |
testing
Diffstat (limited to 'test/vlc.exp')
-rwxr-xr-x | test/vlc.exp | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/test/vlc.exp b/test/vlc.exp new file mode 100755 index 000000000..8ab5aa2ce --- /dev/null +++ b/test/vlc.exp | |||
@@ -0,0 +1,72 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail vlc\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Reading profile /etc/firejail/vlc.profile" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | sleep 10 | ||
17 | |||
18 | spawn $env(SHELL) | ||
19 | send -- "firejail --list\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 3\n";exit} | ||
22 | ":firejail" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
26 | "vlc" | ||
27 | } | ||
28 | sleep 1 | ||
29 | |||
30 | send -- "firejail --name=blablabla\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | "Child process initialized" | ||
34 | } | ||
35 | sleep 2 | ||
36 | |||
37 | spawn $env(SHELL) | ||
38 | send -- "firemon --seccomp\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5\n";exit} | ||
41 | ":firejail vlc" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | ||
45 | "Seccomp: 2" | ||
46 | } | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
49 | "name=blablabla" | ||
50 | } | ||
51 | sleep 1 | ||
52 | send -- "firemon --caps\r" | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 6\n";exit} | ||
55 | ":firejail vlc" | ||
56 | } | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
59 | "CapBnd:" | ||
60 | } | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
63 | "0000000000000000" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
67 | "name=blablabla" | ||
68 | } | ||
69 | sleep 1 | ||
70 | |||
71 | puts "\nall done\n" | ||
72 | |||