aboutsummaryrefslogtreecommitdiffstats
path: root/test/overlay/fs.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/overlay/fs.exp')
-rwxr-xr-xtest/overlay/fs.exp62
1 files changed, 0 insertions, 62 deletions
diff --git a/test/overlay/fs.exp b/test/overlay/fs.exp
deleted file mode 100755
index e078e604c..000000000
--- a/test/overlay/fs.exp
+++ /dev/null
@@ -1,62 +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
9
10send -- "firejail --overlay\r"
11expect {
12 timeout {puts "TESTING ERROR 2\n";exit}
13 "not available for kernels older than 3.18" {puts "\nTESTING: overlayfs not available\n"; exit}
14 "Error: --overlay option is not available on Grsecurity systems" {puts "\nTESTING: overlayfs not available\n"; exit}
15 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "found\n"}
16}
17sleep 1
18
19send -- "stty -echo\r"
20after 100
21send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r"
22expect {
23 timeout {puts "TESTING ERROR 3\n";exit}
24 "done"
25}
26after 100
27
28send -- "stty -echo\r"
29after 100
30send -- "cat ~/_firejail_test_file; echo done\r"
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "xyzxyzxyz"
34}
35expect {
36 timeout {puts "TESTING ERROR 4.1\n";exit}
37 "done"
38}
39after 100
40
41send -- "exit\r"
42sleep 2
43
44send -- "stty -echo\r"
45after 100
46send -- "cat ~/_firejail_test_file; echo done\r"
47expect {
48 timeout {puts "TESTING ERROR 5\n";exit}
49 "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit}
50 "done"
51}
52after 100
53
54# check /sys directory
55send -- "ls /sys\r"
56expect {
57 timeout {puts "TESTING ERROR 6\n";exit}
58 "block"
59}
60after 100
61
62puts "\nall done\n"