aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps/wine.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/apps/wine.exp')
-rwxr-xr-xtest/apps/wine.exp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/apps/wine.exp b/test/apps/wine.exp
new file mode 100755
index 000000000..a2f465acb
--- /dev/null
+++ b/test/apps/wine.exp
@@ -0,0 +1,33 @@
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 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail wine --help\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Reading profile /etc/firejail/wine.profile"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Child process initialized"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "Usage: wine PROGRAM"
22}
23expect {
24 timeout {puts "TESTING ERROR 3\n";exit}
25 "wine --version"
26}
27expect {
28 timeout {puts "TESTING ERROR 4\n";exit}
29 "Parent is shutting down, bye..."
30}
31
32puts "\nall done\n"
33