aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-13 20:35:12 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-13 20:35:12 -0500
commit2f8688a17eb9f20d15b1ac53cb58c2759987ed71 (patch)
treefee7cf10a8f7c45f0d34ce3535801b2ee256dee8 /test/environment
parentmajor cleanup and testing (diff)
downloadfirejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.gz
firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.zst
firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.zip
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/environment.sh6
-rwxr-xr-xtest/environment/rlimit-profile.exp33
-rwxr-xr-xtest/environment/rlimit.exp37
-rw-r--r--test/environment/rlimit.profile4
4 files changed, 0 insertions, 80 deletions
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index 04a1daaf6..5c4d49331 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -55,12 +55,6 @@ else
55 echo "TESTING SKIP: zsh not found" 55 echo "TESTING SKIP: zsh not found"
56fi 56fi
57 57
58echo "TESTING: rlimit (test/environment/rlimit.exp)"
59./rlimit.exp
60
61echo "TESTING: rlimit profile (test/environment/rlimit-profile.exp)"
62./rlimit-profile.exp
63
64echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" 58echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
65./firejail-in-firejail.exp 59./firejail-in-firejail.exp
66 60
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
deleted file mode 100755
index a9e54a405..000000000
--- a/test/environment/rlimit-profile.exp
+++ /dev/null
@@ -1,33 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4#cd /home
5spawn $env(SHELL)
6match_max 100000
7
8send -- "firejail --profile=rlimit.profile\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "cat /proc/self/limits\r"
16expect {
17 timeout {puts "TESTING ERROR 1.1\n";exit}
18 "Max file size 1024 1024"
19}
20expect {
21 timeout {puts "TESTING ERROR 1.2\n";exit}
22 "Max processes 1000 1000"
23}
24expect {
25 timeout {puts "TESTING ERROR 1.3\n";exit}
26 "Max open files 500 500"
27}
28expect {
29 timeout {puts "TESTING ERROR 1.4\n";exit}
30 "Max pending signals 200 200"
31}
32after 100
33puts "\nall done\n"
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp
deleted file mode 100755
index 611f69821..000000000
--- a/test/environment/rlimit.exp
+++ /dev/null
@@ -1,37 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4cd /home
5spawn $env(SHELL)
6match_max 100000
7
8send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "cat /proc/self/limits; pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 1.1\n";exit}
18 "Max file size 1024 1024"
19}
20expect {
21 timeout {puts "TESTING ERROR 1.2\n";exit}
22 "Max processes 1000 1000"
23}
24expect {
25 timeout {puts "TESTING ERROR 1.3\n";exit}
26 "Max open files 500 500"
27}
28expect {
29 timeout {puts "TESTING ERROR 1.4\n";exit}
30 "Max pending signals 200 200"
31}
32expect {
33 timeout {puts "TESTING ERROR 1.5\n";exit}
34 "home"
35}
36after 100
37puts "\n"
diff --git a/test/environment/rlimit.profile b/test/environment/rlimit.profile
deleted file mode 100644
index 271891c03..000000000
--- a/test/environment/rlimit.profile
+++ /dev/null
@@ -1,4 +0,0 @@
1 rlimit-fsize 1024
2rlimit-nproc 1000
3 rlimit-nofile 500
4rlimit-sigpending 200 \ No newline at end of file