diff options
author | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
commit | 27c4d069f322fbeca07c88e0e96208233103a5db (patch) | |
tree | fb4b4fdc75eb5e633ab55b8228a60f54176446a0 /test/root/unbound.exp | |
parent | fix cppcheck/scan-build problems (diff) | |
download | firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.gz firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.zst firejail-27c4d069f322fbeca07c88e0e96208233103a5db.zip |
chroot testing
Diffstat (limited to 'test/root/unbound.exp')
-rwxr-xr-x | test/root/unbound.exp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/root/unbound.exp b/test/root/unbound.exp deleted file mode 100755 index d84c07452..000000000 --- a/test/root/unbound.exp +++ /dev/null | |||
@@ -1,51 +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 | set timeout 5 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --name=unbound unbound\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | sleep 2 | ||
16 | |||
17 | spawn $env(SHELL) | ||
18 | send -- "firejail --tree\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "unbound:unbound" | ||
22 | } | ||
23 | sleep 2 | ||
24 | |||
25 | send -- "tail /var/log/syslog\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 3\n";exit} | ||
28 | "unbound" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "info: start of service" | ||
33 | } | ||
34 | sleep 2 | ||
35 | |||
36 | send -- "firejail --join=unbound\r" | ||
37 | sleep 2 | ||
38 | |||
39 | send -- "ls /dev\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 5\n";exit} | ||
42 | "tty0" {puts "TESTING ERROR 6\n";exit} | ||
43 | "ttyS0" {puts "TESTING ERROR 6\n";exit} | ||
44 | "audio" {puts "TESTING ERROR 6\n";exit} | ||
45 | "ppp" {puts "TESTING ERROR 6\n";exit} | ||
46 | "log" | ||
47 | } | ||
48 | sleep 2 | ||
49 | |||
50 | |||
51 | puts "\nall done\n" | ||