aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.6.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/1.6.exp')
-rwxr-xr-xtest/features/1.6.exp79
1 files changed, 0 insertions, 79 deletions
diff --git a/test/features/1.6.exp b/test/features/1.6.exp
deleted file mode 100755
index 0d0f08817..000000000
--- a/test/features/1.6.exp
+++ /dev/null
@@ -1,79 +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# new /var/log
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\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 /var/log/syslog | wc -l\r"
26expect {
27 timeout {puts "TESTING ERROR 1\n";exit}
28 "0"
29}
30after 100
31send -- "exit\r"
32sleep 1
33
34
35#
36# O
37#
38if { $overlay == "overlay" } {
39 send -- "firejail --noprofile --overlay\r"
40 expect {
41 timeout {puts "TESTING ERROR 2\n";exit}
42 "overlay option is not available" {puts "grsecurity\n"; exit}
43 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
44 }
45 sleep 1
46
47 send -- "ls -l /var/log/syslog | wc -l\r"
48 expect {
49 timeout {puts "TESTING ERROR 3\n";exit}
50 "0"
51 }
52 after 100
53 send -- "exit\r"
54 sleep 1
55}
56
57#
58# C
59#
60if { $chroot == "chroot" } {
61 send -- "firejail --noprofile --chroot=/tmp/chroot\r"
62 expect {
63 timeout {puts "TESTING ERROR 4\n";exit}
64 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
65 }
66 sleep 1
67
68 send -- "ls -l /var/log/syslog | wc -l\r"
69 expect {
70 timeout {puts "TESTING ERROR 5\n";exit}
71 "0"
72 }
73 after 100
74 send -- "exit\r"
75 sleep 1
76}
77
78
79puts "\nall done\n"