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