diff options
Diffstat (limited to 'test/firemon-caps.exp')
-rwxr-xr-x | test/firemon-caps.exp | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/test/firemon-caps.exp b/test/firemon-caps.exp deleted file mode 100755 index 3dd6384db..000000000 --- a/test/firemon-caps.exp +++ /dev/null | |||
@@ -1,126 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=bingo1 --noprofile --caps\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --name=bingo2 --noprofile\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Child process initialized" | ||
19 | } | ||
20 | sleep 1 | ||
21 | |||
22 | spawn $env(SHELL) | ||
23 | send -- "firejail --name=bingo3 --noprofile --caps.drop=all\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 2\n";exit} | ||
26 | "Child process initialized" | ||
27 | } | ||
28 | sleep 1 | ||
29 | |||
30 | spawn $env(SHELL) | ||
31 | send -- "firejail --noprofile --name=bingo4 --caps.drop=chown,kill\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 3\n";exit} | ||
34 | "Child process initialized" | ||
35 | } | ||
36 | sleep 1 | ||
37 | |||
38 | spawn $env(SHELL) | ||
39 | send -- "firejail --noprofile --name=bingo5 --caps.keep=chown,kill\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 4\n";exit} | ||
42 | "Child process initialized" | ||
43 | } | ||
44 | sleep 1 | ||
45 | |||
46 | spawn $env(SHELL) | ||
47 | send -- "firejail --name=bingo6 --profile=caps1.profile\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 5\n";exit} | ||
50 | "Child process initialized" | ||
51 | } | ||
52 | sleep 1 | ||
53 | |||
54 | spawn $env(SHELL) | ||
55 | send -- "firejail --name=bingo7 --profile=caps2.profile\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 0\n";exit} | ||
58 | "Child process initialized" | ||
59 | } | ||
60 | sleep 1 | ||
61 | |||
62 | spawn $env(SHELL) | ||
63 | send -- "firemon --caps\r" | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 8.1\n";exit} | ||
66 | "bingo1" | ||
67 | } | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 8.2\n";exit} | ||
70 | "31cffff" | ||
71 | } | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 8.3\n";exit} | ||
74 | "bingo2" | ||
75 | } | ||
76 | expect { | ||
77 | timeout {puts "TESTING ERROR 8.4\n";exit} | ||
78 | "fffffff" | ||
79 | } | ||
80 | expect { | ||
81 | timeout {puts "TESTING ERROR 8.5\n";exit} | ||
82 | "bingo3" | ||
83 | } | ||
84 | expect { | ||
85 | timeout {puts "TESTING ERROR 8.6\n";exit} | ||
86 | "000000000000" | ||
87 | } | ||
88 | |||
89 | expect { | ||
90 | timeout {puts "TESTING ERROR 8.7\n";exit} | ||
91 | "bingo4" | ||
92 | } | ||
93 | expect { | ||
94 | timeout {puts "TESTING ERROR 8.8\n";exit} | ||
95 | "ffffffde" | ||
96 | } | ||
97 | expect { | ||
98 | timeout {puts "TESTING ERROR 8.9\n";exit} | ||
99 | "bingo5" | ||
100 | } | ||
101 | expect { | ||
102 | timeout {puts "TESTING ERROR 8.10\n";exit} | ||
103 | "0000000000000021" | ||
104 | } | ||
105 | |||
106 | expect { | ||
107 | timeout {puts "TESTING ERROR 8.11\n";exit} | ||
108 | "bingo6" | ||
109 | } | ||
110 | expect { | ||
111 | timeout {puts "TESTING ERROR 8.12\n";exit} | ||
112 | "ffffffde" | ||
113 | } | ||
114 | expect { | ||
115 | timeout {puts "TESTING ERROR 8.13\n";exit} | ||
116 | "bingo7" | ||
117 | } | ||
118 | expect { | ||
119 | timeout {puts "TESTING ERROR 8.14\n";exit} | ||
120 | "0000000000000021" | ||
121 | } | ||
122 | |||
123 | after 100 | ||
124 | |||
125 | puts "all done\n" | ||
126 | |||