aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/firemon-cgroup.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/firemon-cgroup.exp')
-rwxr-xr-xtest/utils/firemon-cgroup.exp40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/utils/firemon-cgroup.exp b/test/utils/firemon-cgroup.exp
deleted file mode 100755
index 2dbc04a50..000000000
--- a/test/utils/firemon-cgroup.exp
+++ /dev/null
@@ -1,40 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=test1\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14}
15sleep 1
16
17spawn $env(SHELL)
18send -- "firejail --name=test2\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22}
23sleep 1
24
25spawn $env(SHELL)
26send -- "firemon --cgroup\r"
27sleep 4
28expect {
29 timeout {puts "TESTING ERROR 2\n";exit}
30 "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
31 "name=test1"
32}
33expect {
34 timeout {puts "TESTING ERROR 3\n";exit}
35 "name=test2"
36}
37
38after 100
39
40puts "\nall done\n"