diff options
author | netblue30 <netblue30@yahoo.com> | 2017-03-29 12:09:26 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-03-29 12:09:26 -0400 |
commit | b2b603eac941d2cdea97d7886dc7181c179a8160 (patch) | |
tree | afb0c44459b96f331e07772959bd7e983a082a05 /test/stress/env.exp | |
parent | merges (diff) | |
download | firejail-b2b603eac941d2cdea97d7886dc7181c179a8160.tar.gz firejail-b2b603eac941d2cdea97d7886dc7181c179a8160.tar.zst firejail-b2b603eac941d2cdea97d7886dc7181c179a8160.zip |
testing
Diffstat (limited to 'test/stress/env.exp')
-rwxr-xr-x | test/stress/env.exp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/stress/env.exp b/test/stress/env.exp new file mode 100755 index 000000000..b327ba498 --- /dev/null +++ b/test/stress/env.exp | |||
@@ -0,0 +1,31 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2017 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | # env testing | ||
11 | send -- "firejail --profile=env.profile\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | |||
17 | send -- "env | grep FJSTRESS77\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "FJSTRESS77=stress" | ||
21 | } | ||
22 | |||
23 | send -- "env | grep FJSTRESS | wc -l\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "100" | ||
27 | } | ||
28 | |||
29 | send -- "exit\r" | ||
30 | after 100 | ||
31 | puts "\nall done\n" | ||