aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 09:22:07 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 09:22:07 -0500
commit3374e24eb39123170fe463c93d38e2f49918e655 (patch)
tree285589aa97fb9cd2513a6862bd60c7d50b24cd29 /test/apps
parenthidepid part 1 (diff)
downloadfirejail-3374e24eb39123170fe463c93d38e2f49918e655.tar.gz
firejail-3374e24eb39123170fe463c93d38e2f49918e655.tar.zst
firejail-3374e24eb39123170fe463c93d38e2f49918e655.zip
hidepid part 2
Diffstat (limited to 'test/apps')
-rwxr-xr-xtest/apps/apps.sh9
-rwxr-xr-xtest/apps/weechat.exp83
2 files changed, 0 insertions, 92 deletions
diff --git a/test/apps/apps.sh b/test/apps/apps.sh
index c329c57e5..38307b284 100755
--- a/test/apps/apps.sh
+++ b/test/apps/apps.sh
@@ -169,15 +169,6 @@ else
169 echo "TESTING SKIP: hexchat not found" 169 echo "TESTING SKIP: hexchat not found"
170fi 170fi
171 171
172which weechat-curses
173if [ "$?" -eq 0 ];
174then
175 echo "TESTING: weechat"
176 ./weechat.exp
177else
178 echo "TESTING SKIP: weechat not found"
179fi
180
181which wine 172which wine
182if [ "$?" -eq 0 ]; 173if [ "$?" -eq 0 ];
183then 174then
diff --git a/test/apps/weechat.exp b/test/apps/weechat.exp
deleted file mode 100755
index b3e04da84..000000000
--- a/test/apps/weechat.exp
+++ /dev/null
@@ -1,83 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail weechat-curses\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Reading profile /etc/firejail/weechat.profile"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Child process initialized"
18}
19sleep 3
20
21spawn $env(SHELL)
22send -- "firejail --list\r"
23expect {
24 timeout {puts "TESTING ERROR 3\n";exit}
25 ":firejail"
26}
27expect {
28 timeout {puts "TESTING ERROR 3.1\n";exit}
29 "weechat-curses"
30}
31after 100
32
33# grsecurity exit
34send -- "file /proc/sys/kernel/grsecurity\r"
35expect {
36 timeout {puts "TESTING ERROR - grsecurity detection\n";exit}
37 "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit}
38 "cannot open" {puts "grsecurity not present\n"}
39}
40
41send -- "firejail --name=blablabla\r"
42expect {
43 timeout {puts "TESTING ERROR 4\n";exit}
44 "Child process initialized"
45}
46sleep 2
47
48spawn $env(SHELL)
49send -- "firemon --seccomp\r"
50expect {
51 timeout {puts "TESTING ERROR 5\n";exit}
52 "weechat-curses"
53}
54expect {
55 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
56 "Seccomp: 2"
57}
58expect {
59 timeout {puts "TESTING ERROR 5.1\n";exit}
60 "name=blablabla"
61}
62after 100
63send -- "firemon --caps\r"
64expect {
65 timeout {puts "TESTING ERROR 6\n";exit}
66 "weechat-curses"
67}
68expect {
69 timeout {puts "TESTING ERROR 6.1\n";exit}
70 "CapBnd:"
71}
72expect {
73 timeout {puts "TESTING ERROR 6.2\n";exit}
74 "0000000000000000"
75}
76expect {
77 timeout {puts "TESTING ERROR 6.3\n";exit}
78 "name=blablabla"
79}
80after 100
81
82puts "\n"
83