From 47be57441f2f49baddebaca884fc65199b234714 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 22 Apr 2016 09:46:07 -0400 Subject: make test-apps --- test/apps/wine.exp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 test/apps/wine.exp (limited to 'test/apps/wine.exp') diff --git a/test/apps/wine.exp b/test/apps/wine.exp new file mode 100755 index 000000000..f5b7d12b4 --- /dev/null +++ b/test/apps/wine.exp @@ -0,0 +1,30 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail wine --help\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Reading profile /etc/firejail/wine.profile" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Usage: wine PROGRAM" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "wine --version" +} +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Parent is shutting down, bye..." +} + +puts "\nall done\n" + -- cgit v1.2.3-70-g09d2