aboutsummaryrefslogtreecommitdiffstats
path: root/test/appimage/appimage-trace.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/appimage/appimage-trace.exp')
-rwxr-xr-xtest/appimage/appimage-trace.exp68
1 files changed, 68 insertions, 0 deletions
diff --git a/test/appimage/appimage-trace.exp b/test/appimage/appimage-trace.exp
new file mode 100755
index 000000000..574bd5a97
--- /dev/null
+++ b/test/appimage/appimage-trace.exp
@@ -0,0 +1,68 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2019 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9set appimage_id $spawn_id
10
11send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.17-x86_64.AppImage\r"
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Child process initialized"
15}
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "leafpad:socket"
19}
20expect {
21 timeout {puts "TESTING ERROR 3\n";exit}
22 "leafpad:connect"
23}
24expect {
25 timeout {puts "TESTING ERROR 4\n";exit}
26 "X11-unix/X0"
27}
28expect {
29 timeout {puts "TESTING ERROR 5\n";exit}
30 "Parent is shutting down, bye"
31}
32expect {
33 timeout {puts "shutdown\n"}
34 "AppImage unmounted"
35}
36sleep 1
37
38send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r"
39expect {
40 timeout {puts "TESTING ERROR 11\n";exit}
41 "Child process initialized"
42}
43expect {
44 timeout {puts "TESTING ERROR 12\n";exit}
45 "leafpad:socket"
46}
47expect {
48 timeout {puts "TESTING ERROR 13\n";exit}
49 "leafpad:connect"
50}
51expect {
52 timeout {puts "TESTING ERROR 14\n";exit}
53 "X11-unix/X0"
54}
55expect {
56 timeout {puts "TESTING ERROR 15\n";exit}
57 "Parent is shutting down, bye"
58}
59expect {
60 timeout {puts "shutdown\n"}
61 "AppImage unmounted"
62}
63sleep 1
64
65
66after 100
67
68puts "\nall done\n"