diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-19 07:10:51 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-19 07:10:51 -0500 |
commit | 1c539a83dd277a7627af995f90565dadc73872a2 (patch) | |
tree | 493b6338c165354e9d6fd983542d700ad01c041e /test/environment/ibus.exp | |
parent | Merge pull request #916 from valoq/master (diff) | |
download | firejail-1c539a83dd277a7627af995f90565dadc73872a2.tar.gz firejail-1c539a83dd277a7627af995f90565dadc73872a2.tar.zst firejail-1c539a83dd277a7627af995f90565dadc73872a2.zip |
testing
Diffstat (limited to 'test/environment/ibus.exp')
-rwxr-xr-x | test/environment/ibus.exp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/environment/ibus.exp b/test/environment/ibus.exp new file mode 100755 index 000000000..4344011a6 --- /dev/null +++ b/test/environment/ibus.exp | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | cd /home | ||
5 | spawn $env(SHELL) | ||
6 | match_max 100000 | ||
7 | |||
8 | send -- "firejail\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 0\n";exit} | ||
11 | "Child process initialized" | ||
12 | } | ||
13 | after 100 | ||
14 | |||
15 | send -- "env | grep IBUS\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "IBUS_ADDRESS" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "IBUS_DAEMON_PID" | ||
23 | } | ||
24 | after 100 | ||
25 | |||
26 | |||
27 | puts "\nall done\n" | ||
28 | |||