From 912ec614b6c059c9cbc1028ddd56b13beb7ad393 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 5 Sep 2017 19:15:39 -0400 Subject: testing --- test/root/firecfg.exp | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) (limited to 'test/root/firecfg.exp') 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 { timeout {puts "TESTING ERROR 0\n";exit} "/usr/local/bin/firefox removed" } -after 100 +sleep 1 + send -- "file /usr/local/bin/firefox; echo done\r" expect { timeout {puts "TESTING ERROR 1\n";exit} "symbolic link to /usr/bin/firejail" {puts "TESTING ERROR 2\n";exit} "done" } -after 100 +sleep 1 send -- "firecfg\r" expect { timeout {puts "TESTING ERROR 3\n";exit} - "/usr/local/bin/firefox created" + "firefox created" } -after 100 +sleep 1 + send -- "file /usr/local/bin/firefox\r" expect { timeout {puts "TESTING ERROR 4\n";exit} "symbolic link to /usr/bin/firejail" } -after 100 +sleep 1 send -- "firecfg --list\r" expect { timeout {puts "TESTING ERROR 5\n";exit} "/usr/local/bin/firefox" } -after 100 +sleep 1 send -- "firecfg --fix\r" expect { - timeout {puts "TESTING ERROR 5\n";exit} + timeout {puts "TESTING ERROR 6\n";exit} "this option is not supported for root user" } +sleep 1 + +send -- "firecfg --fix-sound\r" +expect { + timeout {puts "TESTING ERROR 7\n";exit} + "PulseAudio configured, please logout and login back again" +} +sleep 1 + +send -- "firecfg --version\r" +expect { + timeout {puts "TESTING ERROR 8\n";exit} + "firecfg version" +} +sleep 1 + +send -- "firecfg --blablabla\r" +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "invalid command line option" +} +sleep 1 + -after 100 puts "\nall done\n" -- cgit v1.2.3-70-g09d2