diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
commit | 020c5449036c461ea1829e854da43429322059d6 (patch) | |
tree | 46ca4f358fcc1c50be77586ccdb0e02170d81e1d /test/environment/rlimit-profile.exp | |
parent | testing (diff) | |
download | firejail-020c5449036c461ea1829e854da43429322059d6.tar.gz firejail-020c5449036c461ea1829e854da43429322059d6.tar.zst firejail-020c5449036c461ea1829e854da43429322059d6.zip |
testing
Diffstat (limited to 'test/environment/rlimit-profile.exp')
-rwxr-xr-x | test/environment/rlimit-profile.exp | 36 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --profile=rlimit.profile\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "cat /proc/self/limits; pwd\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
17 | "Max file size 1024 1024" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
21 | "Max processes 1000 1000" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 1.3\n";exit} | ||
25 | "Max open files 500 500" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
29 | "Max pending signals 200 200" | ||
30 | } | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
33 | "home" | ||
34 | } | ||
35 | sleep 1 | ||
36 | puts "\n" | ||