aboutsummaryrefslogtreecommitdiffstats
path: root/test/appimage/appimage-trace.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-01 08:52:53 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-03-01 08:52:53 -0500
commitb50812ff5ef5009b7c6babb19fd9caa315f31515 (patch)
tree0535438678837dffb9ba5ba988efa482d53c1fc3 /test/appimage/appimage-trace.exp
parentchroot testing (diff)
downloadfirejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.tar.gz
firejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.tar.zst
firejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.zip
appimage testing
Diffstat (limited to 'test/appimage/appimage-trace.exp')
-rwxr-xr-xtest/appimage/appimage-trace.exp45
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)
8match_max 100000 8match_max 100000
9set appimage_id $spawn_id 9set appimage_id $spawn_id
10 10
11send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.17-x86_64.AppImage\r" 11send -- "firejail --trace --timeout=00:00:05 --appimage hello-x86_64.AppImage\r"
12expect { 12expect {
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}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 2\n";exit} 17 timeout {puts "TESTING ERROR 2\n";exit}
18 "leafpad:socket" 18 "AppRun:exec"
19} 19}
20expect { 20expect {
21 timeout {puts "TESTING ERROR 3\n";exit} 21 timeout {puts "TESTING ERROR 3\n";exit}
22 "leafpad:connect" 22 "AppRun:opendir"
23} 23}
24expect { 24expect {
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}
28expect { 28expect {
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}
32expect {
33 timeout {puts "shutdown\n"}
34 "AppImage detached"
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 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
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 detached"
62}
63sleep 1
64
65 32
66after 100 33after 500
67 34
68puts "\nall done\n" 35puts "\nall done\n"