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