diff options
author | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
commit | 27c4d069f322fbeca07c88e0e96208233103a5db (patch) | |
tree | fb4b4fdc75eb5e633ab55b8228a60f54176446a0 /test/stress/stress.sh | |
parent | fix cppcheck/scan-build problems (diff) | |
download | firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.gz firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.zst firejail-27c4d069f322fbeca07c88e0e96208233103a5db.zip |
chroot testing
Diffstat (limited to 'test/stress/stress.sh')
-rwxr-xr-x | test/stress/stress.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/test/stress/stress.sh b/test/stress/stress.sh deleted file mode 100755 index 9db7ac9d3..000000000 --- a/test/stress/stress.sh +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | export MALLOC_CHECK_=3 | ||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | ||
8 | export LC_ALL=C | ||
9 | |||
10 | |||
11 | # blacklist testing | ||
12 | rm -fr ~/fj-stress-test | ||
13 | mkdir ~/fj-stress-test | ||
14 | rm blacklist.profile | ||
15 | rm noblacklist.profile | ||
16 | rm env.profile | ||
17 | for i in {1..100} | ||
18 | do | ||
19 | echo "hello" > ~/fj-stress-test/testfile$i | ||
20 | echo "blacklist ~/fj-stress-test/testfile$i" >> blacklist.profile | ||
21 | echo "blacklist \${PATH}/sh" >> blacklist.profile | ||
22 | echo "noblacklist ~/fj-stress-test/testfile$i" >> noblacklist.profile | ||
23 | echo "noblacklist \${PATH}/sh" >> noblacklist.profile | ||
24 | echo "env FJSTRESS$i=stress" >> env.profile | ||
25 | done | ||
26 | echo "include blacklist.profile" >> noblacklist.profile | ||
27 | |||
28 | echo "TESTING: stress blacklist/noblacklist (/test/stress/blacklist.exp)" | ||
29 | ./blacklist.exp | ||
30 | |||
31 | echo "TESTING: stress env (/test/stress/env.exp)" | ||
32 | ./env.exp | ||
33 | |||
34 | rm -fr ~/fj-stress-test | ||
35 | |||
36 | rm blacklist.profile | ||
37 | rm noblacklist.profile | ||
38 | rm env.profile | ||
39 | |||
40 | # network arp testing | ||
41 | echo "TESTING: macvlan (test/stress/net_macvlan.exp)" | ||
42 | ./net_macvlan.exp | ||