aboutsummaryrefslogtreecommitdiffstats
path: root/test/appimage/appimage-v2.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-v2.exp
parentchroot testing (diff)
downloadfirejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.tar.gz
firejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.tar.zst
firejail-b50812ff5ef5009b7c6babb19fd9caa315f31515.zip
appimage testing
Diffstat (limited to 'test/appimage/appimage-v2.exp')
-rwxr-xr-xtest/appimage/appimage-v2.exp31
1 files changed, 17 insertions, 14 deletions
diff --git a/test/appimage/appimage-v2.exp b/test/appimage/appimage-v2.exp
index 748ac3d79..2d86de240 100755
--- a/test/appimage/appimage-v2.exp
+++ b/test/appimage/appimage-v2.exp
@@ -8,12 +8,24 @@ spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set appimage_id $spawn_id 9set appimage_id $spawn_id
10 10
11send -- "firejail --name=test --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r" 11send -- "firejail --name=test --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}
16sleep 2 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Hello, World!"
19}
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Operation not permitted"
23}
24expect {
25 timeout {puts "TESTING ERROR 1\n";exit}
26 "Hello, again!"
27}
28sleep 5
17 29
18spawn $env(SHELL) 30spawn $env(SHELL)
19send -- "firejail --list\r" 31send -- "firejail --list\r"
@@ -23,19 +35,10 @@ expect {
23} 35}
24expect { 36expect {
25 timeout {puts "TESTING ERROR 3.1\n";exit} 37 timeout {puts "TESTING ERROR 3.1\n";exit}
26 "appimage Leafpad" 38 "appimage hello-x86_64"
27} 39}
28after 100 40after 100
29 41
30# grsecurity exit
31send -- "file /proc/sys/kernel/grsecurity\r"
32expect {
33 timeout {puts "TESTING ERROR - grsecurity detection\n";exit}
34 "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit}
35 "cannot open" {puts "grsecurity not present\n"}
36}
37
38
39send -- "firejail --name=blablabla\r" 42send -- "firejail --name=blablabla\r"
40expect { 43expect {
41 timeout {puts "TESTING ERROR 4\n";exit} 44 timeout {puts "TESTING ERROR 4\n";exit}
@@ -48,7 +51,7 @@ send -- "firemon --seccomp\r"
48expect { 51expect {
49 timeout {puts "TESTING ERROR 5\n";exit} 52 timeout {puts "TESTING ERROR 5\n";exit}
50 "need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit} 53 "need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
51 "appimage Leafpad" 54 "appimage hello-x86_64"
52} 55}
53expect { 56expect {
54 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} 57 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
@@ -62,7 +65,7 @@ after 100
62send -- "firemon --caps\r" 65send -- "firemon --caps\r"
63expect { 66expect {
64 timeout {puts "TESTING ERROR 6\n";exit} 67 timeout {puts "TESTING ERROR 6\n";exit}
65 "appimage Leafpad" 68 "appimage hello-x86_64"
66} 69}
67expect { 70expect {
68 timeout {puts "TESTING ERROR 6.1\n";exit} 71 timeout {puts "TESTING ERROR 6.1\n";exit}