diff options
Diffstat (limited to 'test/appimage/appimage-trace.exp')
-rwxr-xr-x | test/appimage/appimage-trace.exp | 45 |
1 files changed, 6 insertions, 39 deletions
diff --git a/test/appimage/appimage-trace.exp b/test/appimage/appimage-trace.exp index f98826138..c1e481a67 100755 --- a/test/appimage/appimage-trace.exp +++ b/test/appimage/appimage-trace.exp | |||
@@ -8,61 +8,28 @@ spawn $env(SHELL) | |||
8 | match_max 100000 | 8 | match_max 100000 |
9 | set appimage_id $spawn_id | 9 | set appimage_id $spawn_id |
10 | 10 | ||
11 | send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.17-x86_64.AppImage\r" | 11 | send -- "firejail --trace --timeout=00:00:05 --appimage hello-x86_64.AppImage\r" |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | 14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
15 | } | 15 | } |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 2\n";exit} | 17 | timeout {puts "TESTING ERROR 2\n";exit} |
18 | "leafpad:socket" | 18 | "AppRun:exec" |
19 | } | 19 | } |
20 | expect { | 20 | expect { |
21 | timeout {puts "TESTING ERROR 3\n";exit} | 21 | timeout {puts "TESTING ERROR 3\n";exit} |
22 | "leafpad:connect" | 22 | "AppRun:opendir" |
23 | } | 23 | } |
24 | expect { | 24 | expect { |
25 | timeout {puts "TESTING ERROR 4\n";exit} | 25 | timeout {puts "TESTING ERROR 4\n";exit} |
26 | "X11-unix/X0" | 26 | "Hello, World!" |
27 | } | 27 | } |
28 | expect { | 28 | expect { |
29 | timeout {puts "TESTING ERROR 5\n";exit} | 29 | timeout {puts "TESTING ERROR 5\n";exit} |
30 | "Parent is shutting down, bye" | 30 | "ping:exec" |
31 | } | 31 | } |
32 | expect { | ||
33 | timeout {puts "shutdown\n"} | ||
34 | "AppImage detached" | ||
35 | } | ||
36 | sleep 1 | ||
37 | |||
38 | send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 11\n";exit} | ||
41 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 12\n";exit} | ||
45 | "leafpad:socket" | ||
46 | } | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 13\n";exit} | ||
49 | "leafpad:connect" | ||
50 | } | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 14\n";exit} | ||
53 | "X11-unix/X0" | ||
54 | } | ||
55 | expect { | ||
56 | timeout {puts "TESTING ERROR 15\n";exit} | ||
57 | "Parent is shutting down, bye" | ||
58 | } | ||
59 | expect { | ||
60 | timeout {puts "shutdown\n"} | ||
61 | "AppImage detached" | ||
62 | } | ||
63 | sleep 1 | ||
64 | |||
65 | 32 | ||
66 | after 100 | 33 | after 500 |
67 | 34 | ||
68 | puts "\nall done\n" | 35 | puts "\nall done\n" |