aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/3.9.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/3.9.exp')
-rwxr-xr-xtest/features/3.9.exp84
1 files changed, 0 insertions, 84 deletions
diff --git a/test/features/3.9.exp b/test/features/3.9.exp
deleted file mode 100755
index cfc588bf1..000000000
--- a/test/features/3.9.exp
+++ /dev/null
@@ -1,84 +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#
6# whitelist dev
7#
8
9set timeout 10
10spawn $env(SHELL)
11match_max 100000
12set overlay [lindex $argv 0]
13set chroot [lindex $argv 1]
14
15#
16# N
17#
18send -- "firejail --noprofile --whitelist=/dev/tty --whitelist=/dev/null\r"
19expect {
20 timeout {puts "TESTING ERROR 0\n";exit}
21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22}
23sleep 1
24
25send -- "ls -l /dev | wc -l\r"
26expect {
27 timeout {puts "TESTING ERROR 1.1\n";exit}
28 "3"
29}
30
31
32after 100
33send -- "exit\r"
34sleep 1
35
36
37#
38# O
39#
40if { $overlay == "overlay" } {
41 send -- "firejail --noprofile --overlay --whitelist=/dev/tty --whitelist=/dev/null\r"
42 expect {
43 timeout {puts "TESTING ERROR 2\n";exit}
44 "overlay option is not available" {puts "grsecurity\n"; exit}
45 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
46 }
47 sleep 1
48
49 send -- "ls -l /dev | wc -l\r"
50 expect {
51 timeout {puts "TESTING ERROR 3.1\n";exit}
52 "3"
53 }
54
55
56 after 100
57 send -- "exit\r"
58 sleep 1
59}
60
61#
62# C
63#
64if { $chroot == "chroot" } {
65 send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/dev/tty --whitelist=/dev/null\r"
66 expect {
67 timeout {puts "TESTING ERROR 4\n";exit}
68 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
69 }
70 sleep 1
71
72 send -- "ls -l /dev | wc -l\r"
73 expect {
74 timeout {puts "TESTING ERROR 5.1\n";exit}
75 "3"
76 }
77
78 after 100
79 send -- "exit\r"
80 sleep 1
81}
82
83
84puts "\nall done\n"