summaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/environment.sh5
-rwxr-xr-xtest/environment/quiet.exp21
2 files changed, 26 insertions, 0 deletions
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index 7b29a3482..49b50797a 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -62,3 +62,8 @@ fi
62 62
63echo "TESTING: nice (test/environment/nice.exp)" 63echo "TESTING: nice (test/environment/nice.exp)"
64./nice.exp 64./nice.exp
65
66echo "TESTING: quiet (test/environment/quiet.exp)"
67./quiet.exp
68
69
diff --git a/test/environment/quiet.exp b/test/environment/quiet.exp
new file mode 100755
index 000000000..38da4673e
--- /dev/null
+++ b/test/environment/quiet.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 4
7spawn $env(SHELL)
8match_max 100000
9
10# check ip address
11send -- "firejail --quiet echo done\r"
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Reading profile" {puts "TESTING ERROR 2\n";exit}
15 "Child process initialized" {puts "TESTING ERROR 3\n";exit}
16 "done"
17}
18sleep 1
19
20puts "\nall done\n"
21