aboutsummaryrefslogtreecommitdiffstats
path: root/test/appimage/appimage-v1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/appimage/appimage-v1.exp')
-rwxr-xr-xtest/appimage/appimage-v1.exp92
1 files changed, 0 insertions, 92 deletions
diff --git a/test/appimage/appimage-v1.exp b/test/appimage/appimage-v1.exp
deleted file mode 100755
index bb360cd18..000000000
--- a/test/appimage/appimage-v1.exp
+++ /dev/null
@@ -1,92 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9set appimage_id $spawn_id
10
11send -- "firejail --name=test --debug --appimage Leafpad-0.8.17-x86_64.AppImage\r"
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15}
16sleep 2
17
18spawn $env(SHELL)
19send -- "firejail --list\r"
20expect {
21 timeout {puts "TESTING ERROR 3\n";exit}
22 ":firejail"
23}
24expect {
25 timeout {puts "TESTING ERROR 3.1\n";exit}
26 "appimage Leafpad"
27}
28after 100
29
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"
40expect {
41 timeout {puts "TESTING ERROR 4\n";exit}
42 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
43}
44sleep 2
45
46spawn $env(SHELL)
47send -- "firemon --seccomp --wrap\r"
48expect {
49 timeout {puts "TESTING ERROR 5\n";exit}
50 "need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
51 "appimage Leafpad"
52}
53expect {
54 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
55 "Seccomp: 2"
56}
57expect {
58 timeout {puts "TESTING ERROR 5.1\n";exit}
59 "name=blablabla"
60}
61after 100
62send -- "firemon --caps --wrap\r"
63expect {
64 timeout {puts "TESTING ERROR 6\n";exit}
65 "appimage Leafpad"
66}
67expect {
68 timeout {puts "TESTING ERROR 6.1\n";exit}
69 "CapBnd:"
70}
71expect {
72 timeout {puts "TESTING ERROR 6.2\n";exit}
73 "0000000000000000"
74}
75expect {
76 timeout {puts "TESTING ERROR 6.3\n";exit}
77 "name=blablabla"
78}
79after 100
80
81spawn $env(SHELL)
82send -- "firejail --shutdown=test\r"
83
84set spawn_id $appimage_id
85expect {
86 timeout {puts "shutdown\n"}
87 "AppImage detached"
88}
89
90after 100
91
92puts "\nall done\n"