aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/rlimit-profile.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-24 06:32:15 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-24 06:32:15 -0400
commit020c5449036c461ea1829e854da43429322059d6 (patch)
tree46ca4f358fcc1c50be77586ccdb0e02170d81e1d /test/environment/rlimit-profile.exp
parenttesting (diff)
downloadfirejail-020c5449036c461ea1829e854da43429322059d6.tar.gz
firejail-020c5449036c461ea1829e854da43429322059d6.tar.zst
firejail-020c5449036c461ea1829e854da43429322059d6.zip
testing
Diffstat (limited to 'test/environment/rlimit-profile.exp')
-rwxr-xr-xtest/environment/rlimit-profile.exp36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
new file mode 100755
index 000000000..7d2637444
--- /dev/null
+++ b/test/environment/rlimit-profile.exp
@@ -0,0 +1,36 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --profile=rlimit.profile\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "cat /proc/self/limits; pwd\r"
15expect {
16 timeout {puts "TESTING ERROR 1.1\n";exit}
17 "Max file size 1024 1024"
18}
19expect {
20 timeout {puts "TESTING ERROR 1.2\n";exit}
21 "Max processes 1000 1000"
22}
23expect {
24 timeout {puts "TESTING ERROR 1.3\n";exit}
25 "Max open files 500 500"
26}
27expect {
28 timeout {puts "TESTING ERROR 1.4\n";exit}
29 "Max pending signals 200 200"
30}
31expect {
32 timeout {puts "TESTING ERROR 1.5\n";exit}
33 "home"
34}
35sleep 1
36puts "\n"