diff options
Diffstat (limited to 'test/appimage/appimage-v2.exp')
-rwxr-xr-x | test/appimage/appimage-v2.exp | 31 |
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) | |||
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 --name=test --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r" | 11 | send -- "firejail --name=test --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 | sleep 2 | 16 | expect { |
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Hello, World!" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1\n";exit} | ||
22 | "Operation not permitted" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 1\n";exit} | ||
26 | "Hello, again!" | ||
27 | } | ||
28 | sleep 5 | ||
17 | 29 | ||
18 | spawn $env(SHELL) | 30 | spawn $env(SHELL) |
19 | send -- "firejail --list\r" | 31 | send -- "firejail --list\r" |
@@ -23,19 +35,10 @@ expect { | |||
23 | } | 35 | } |
24 | expect { | 36 | expect { |
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 | } |
28 | after 100 | 40 | after 100 |
29 | 41 | ||
30 | # grsecurity exit | ||
31 | send -- "file /proc/sys/kernel/grsecurity\r" | ||
32 | expect { | ||
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 | |||
39 | send -- "firejail --name=blablabla\r" | 42 | send -- "firejail --name=blablabla\r" |
40 | expect { | 43 | expect { |
41 | timeout {puts "TESTING ERROR 4\n";exit} | 44 | timeout {puts "TESTING ERROR 4\n";exit} |
@@ -48,7 +51,7 @@ send -- "firemon --seccomp\r" | |||
48 | expect { | 51 | expect { |
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 | } |
53 | expect { | 56 | expect { |
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 | |||
62 | send -- "firemon --caps\r" | 65 | send -- "firemon --caps\r" |
63 | expect { | 66 | expect { |
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 | } |
67 | expect { | 70 | expect { |
68 | timeout {puts "TESTING ERROR 6.1\n";exit} | 71 | timeout {puts "TESTING ERROR 6.1\n";exit} |