From 27c4d069f322fbeca07c88e0e96208233103a5db Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 28 Feb 2023 09:51:26 -0500 Subject: chroot testing --- test/stress/blacklist.exp | 59 ----------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100755 test/stress/blacklist.exp (limited to 'test/stress/blacklist.exp') diff --git a/test/stress/blacklist.exp b/test/stress/blacklist.exp deleted file mode 100755 index 3c6801b99..000000000 --- a/test/stress/blacklist.exp +++ /dev/null @@ -1,59 +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 - -set MAXi 100 - -# blacklist testing -set i 1 -send -- "firejail --profile=blacklist.profile\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" -} - -while { $i <= $MAXi } { - send -- "cat ~/fj-stress-test/testfile$i\r" - expect { - timeout {puts "TESTING ERROR 1\n";exit} - "denied" - } - incr i - after 100 -} -after 100 - -send -- "exit\r" -sleep 1 - -# noblacklist testing -set i 1 -send -- "firejail --profile=noblacklist.profile\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" -} - -while { $i <= $MAXi } { - send -- "cat ~/fj-stress-test/testfile$i\r" - expect { - timeout {puts "TESTING ERROR 1\n";exit} - "hello" - } - incr i - after 100 -} -after 100 - -send -- "exit\r" -sleep 1 - - - -after 100 -puts "\nall done\n" -- cgit v1.2.3-70-g09d2