aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/firecfg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/firecfg.exp')
-rwxr-xr-xtest/root/firecfg.exp80
1 files changed, 0 insertions, 80 deletions
diff --git a/test/root/firecfg.exp b/test/root/firecfg.exp
deleted file mode 100755
index d78631c76..000000000
--- a/test/root/firecfg.exp
+++ /dev/null
@@ -1,80 +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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firecfg --debug\r"
11sleep 1
12
13send -- "firecfg --debug --clean\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "less removed"
17}
18sleep 1
19
20send -- "stty -echo\r"
21after 100
22send -- "file /usr/local/bin/firefox; echo done\r"
23expect {
24 timeout {puts "TESTING ERROR 1\n";exit}
25 "symbolic link to /usr/bin/firejail" {puts "TESTING ERROR 2\n";exit}
26 "done"
27}
28sleep 1
29
30send -- "firecfg --debug\r"
31expect {
32 timeout {puts "TESTING ERROR 3\n";exit}
33 "less created"
34}
35sleep 1
36
37send -- "file /usr/local/bin/less\r"
38expect {
39 timeout {puts "TESTING ERROR 4\n";exit}
40 "symbolic link to /usr/bin/firejail"
41}
42sleep 1
43
44send -- "firecfg --list\r"
45expect {
46 timeout {puts "TESTING ERROR 5\n";exit}
47 "/usr/local/bin/less"
48}
49sleep 1
50
51send -- "firecfg --fix\r"
52expect {
53 timeout {puts "TESTING ERROR 6\n";exit}
54 "this option is not supported for root user"
55}
56sleep 1
57
58send -- "firecfg --fix-sound\r"
59expect {
60 timeout {puts "TESTING ERROR 7\n";exit}
61 "PulseAudio configured, please logout and login back again"
62}
63sleep 1
64
65send -- "firecfg --version\r"
66expect {
67 timeout {puts "TESTING ERROR 8\n";exit}
68 "firecfg version"
69}
70sleep 1
71
72send -- "firecfg --blablabla\r"
73expect {
74 timeout {puts "TESTING ERROR 9\n";exit}
75 "invalid command line option"
76}
77sleep 1
78
79
80puts "\nall done\n"