From 27c4d069f322fbeca07c88e0e96208233103a5db Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 28 Feb 2023 09:51:26 -0500 Subject: chroot testing --- test/root/firecfg.exp | 80 --------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100755 test/root/firecfg.exp (limited to 'test/root/firecfg.exp') 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 @@ -#!/usr/bin/expect -f -# This file is part of Firejail project -# Copyright (C) 2014-2023 Firejail Authors -# License GPL v2 - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "firecfg --debug\r" -sleep 1 - -send -- "firecfg --debug --clean\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "less removed" -} -sleep 1 - -send -- "stty -echo\r" -after 100 -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" -} -sleep 1 - -send -- "firecfg --debug\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "less created" -} -sleep 1 - -send -- "file /usr/local/bin/less\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "symbolic link to /usr/bin/firejail" -} -sleep 1 - -send -- "firecfg --list\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "/usr/local/bin/less" -} -sleep 1 - -send -- "firecfg --fix\r" -expect { - 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 - - -puts "\nall done\n" -- cgit v1.2.3-70-g09d2