summaryrefslogtreecommitdiffstats
path: root/test/stress/env.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-03-29 12:09:26 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-03-29 12:09:26 -0400
commitb2b603eac941d2cdea97d7886dc7181c179a8160 (patch)
treeafb0c44459b96f331e07772959bd7e983a082a05 /test/stress/env.exp
parentmerges (diff)
downloadfirejail-b2b603eac941d2cdea97d7886dc7181c179a8160.tar.gz
firejail-b2b603eac941d2cdea97d7886dc7181c179a8160.tar.zst
firejail-b2b603eac941d2cdea97d7886dc7181c179a8160.zip
testing
Diffstat (limited to 'test/stress/env.exp')
-rwxr-xr-xtest/stress/env.exp31
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10# env testing
11send -- "firejail --profile=env.profile\r"
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Child process initialized"
15}
16
17send -- "env | grep FJSTRESS77\r"
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 "FJSTRESS77=stress"
21}
22
23send -- "env | grep FJSTRESS | wc -l\r"
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "100"
27}
28
29send -- "exit\r"
30after 100
31puts "\nall done\n"