summaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
commit37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch)
tree5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/environment
parentrename generic.profile as default.profile (diff)
downloadfirejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip
testing
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