diff options
author | 2023-03-09 08:39:25 -0500 | |
---|---|---|
committer | 2023-03-09 08:39:25 -0500 | |
commit | c79aa14295f907ffac0cf5555515602b7393b8b6 (patch) | |
tree | 87a114af4e12388e09e2d16d518b50be9ddbe0a6 /test/filters/protocol.exp | |
parent | testing (diff) | |
download | firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.gz firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.zst firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.zip |
testing
Diffstat (limited to 'test/filters/protocol.exp')
-rwxr-xr-x | test/filters/protocol.exp | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/test/filters/protocol.exp b/test/filters/protocol.exp deleted file mode 100755 index 5320dde6f..000000000 --- a/test/filters/protocol.exp +++ /dev/null | |||
@@ -1,97 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --noprofile --protocol=unix --debug\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 1\n";exit} | ||
13 | "0009: 20 00 00 00000000" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "000f: 20 00 00 00000010" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 3\n";exit} | ||
21 | "0010: 15 00 01 00000001" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 4\n";exit} | ||
25 | "0011: 06 00 00 7fff0000" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 5\n";exit} | ||
29 | "0012: 06 00 00 0005005f" | ||
30 | } | ||
31 | |||
32 | after 100 | ||
33 | send -- "exit\r" | ||
34 | sleep 1 | ||
35 | |||
36 | send -- "firejail --noprofile --protocol=bluetooth --debug\r" | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 11\n";exit} | ||
39 | "0009: 20 00 00 00000000" | ||
40 | } | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 12\n";exit} | ||
43 | "000f: 20 00 00 00000010" | ||
44 | } | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 13\n";exit} | ||
47 | "0010: 15 00 01 0000001f" | ||
48 | } | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 14\n";exit} | ||
51 | "0011: 06 00 00 7fff0000" | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR1 5\n";exit} | ||
55 | "0012: 06 00 00 0005005f" | ||
56 | } | ||
57 | |||
58 | after 100 | ||
59 | send -- "exit\r" | ||
60 | sleep 1 | ||
61 | |||
62 | send -- "firejail --noprofile --protocol=inet,inet6 --debug\r" | ||
63 | expect { | ||
64 | timeout {puts "TESTING ERROR 31\n";exit} | ||
65 | "0009: 20 00 00 00000000" | ||
66 | } | ||
67 | expect { | ||
68 | timeout {puts "TESTING ERROR 32\n";exit} | ||
69 | "000f: 20 00 00 00000010" | ||
70 | } | ||
71 | expect { | ||
72 | timeout {puts "TESTING ERROR 33\n";exit} | ||
73 | "0010: 15 00 01 00000002" | ||
74 | } | ||
75 | expect { | ||
76 | timeout {puts "TESTING ERROR 34\n";exit} | ||
77 | "0011: 06 00 00 7fff0000" | ||
78 | } | ||
79 | expect { | ||
80 | timeout {puts "TESTING ERROR1 35\n";exit} | ||
81 | "0012: 15 00 01 0000000a" | ||
82 | } | ||
83 | expect { | ||
84 | timeout {puts "TESTING ERROR 36\n";exit} | ||
85 | "0013: 06 00 00 7fff0000" | ||
86 | } | ||
87 | expect { | ||
88 | timeout {puts "TESTING ERROR 37\n";exit} | ||
89 | "0014: 06 00 00 0005005f" | ||
90 | } | ||
91 | |||
92 | after 100 | ||
93 | send -- "exit\r" | ||
94 | |||
95 | |||
96 | after 100 | ||
97 | puts "\nall done\n" | ||