diff options
author | netblue30 <netblue30@yahoo.com> | 2016-05-05 10:22:18 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-05-05 10:22:18 -0400 |
commit | 37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch) | |
tree | 5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/environment | |
parent | rename generic.profile as default.profile (diff) | |
download | firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip |
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/environment.sh | 5 | ||||
-rwxr-xr-x | test/environment/quiet.exp | 21 |
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 | ||
63 | echo "TESTING: nice (test/environment/nice.exp)" | 63 | echo "TESTING: nice (test/environment/nice.exp)" |
64 | ./nice.exp | 64 | ./nice.exp |
65 | |||
66 | echo "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 | |||
6 | set timeout 4 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | # check ip address | ||
11 | send -- "firejail --quiet echo done\r" | ||
12 | expect { | ||
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 | } | ||
18 | sleep 1 | ||
19 | |||
20 | puts "\nall done\n" | ||
21 | |||