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