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