diff options
author | netblue30 <netblue30@protonmail.com> | 2023-01-12 11:33:47 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-01-12 11:33:47 -0500 |
commit | 2d0d9a4080a5fd54c4914227843ae3e609bad1cb (patch) | |
tree | 1c69de02e21b42a652bad4a650b259635dd7ccdf /test/fs | |
parent | geary: fix opening hyperlinks via D-Bus (#5565) (diff) | |
download | firejail-2d0d9a4080a5fd54c4914227843ae3e609bad1cb.tar.gz firejail-2d0d9a4080a5fd54c4914227843ae3e609bad1cb.tar.zst firejail-2d0d9a4080a5fd54c4914227843ae3e609bad1cb.zip |
rel 0.9.72 testing: cleanup make test-private-lib
Diffstat (limited to 'test/fs')
-rwxr-xr-x | test/fs/fs.sh | 11 | ||||
-rwxr-xr-x | test/fs/private-lib.exp | 48 |
2 files changed, 0 insertions, 59 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh index 697c86d3d..677b753fc 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh | |||
@@ -45,17 +45,6 @@ echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)" | |||
45 | ./fs_var_tmp.exp | 45 | ./fs_var_tmp.exp |
46 | rm -f /var/tmp/_firejail_test_file | 46 | rm -f /var/tmp/_firejail_test_file |
47 | 47 | ||
48 | if [[ $(uname -m) == "x86_64" ]]; then | ||
49 | fjconfig=/etc/firejail/firejail.config | ||
50 | printf 'private-lib yes\n' | sudo tee -a "$fjconfig" >/dev/null | ||
51 | echo "TESTING: private-lib (test/fs/private-lib.exp)" | ||
52 | ./private-lib.exp | ||
53 | printf '%s\n' "$(sed '/^private-lib yes$/d' "$fjconfig")" | | ||
54 | sudo tee "$fjconfig" >/dev/null | ||
55 | else | ||
56 | echo "TESTING SKIP: private-lib test implemented only for x86_64." | ||
57 | fi | ||
58 | |||
59 | echo "TESTING: read/write /var/lock (test/fs/fs_var_lock.exp)" | 48 | echo "TESTING: read/write /var/lock (test/fs/fs_var_lock.exp)" |
60 | ./fs_var_lock.exp | 49 | ./fs_var_lock.exp |
61 | rm -f /var/lock/_firejail_test_file | 50 | rm -f /var/lock/_firejail_test_file |
diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp deleted file mode 100755 index 5290def35..000000000 --- a/test/fs/private-lib.exp +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | |||
7 | set timeout 10 | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty \r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | after 100 | ||
17 | send -- "stty -echo\r" | ||
18 | after 100 | ||
19 | |||
20 | send -- "cd /bin; find .\; echo done\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | # "grep" {puts "TESTING ERROR 3\n";exit} | ||
24 | "rm" {puts "TESTING ERROR 3\n";exit} | ||
25 | "cp" {puts "TESTING ERROR 4\n";exit} | ||
26 | "done" | ||
27 | } | ||
28 | after 100 | ||
29 | |||
30 | send -- "cd /lib; find .\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 5\n";exit} | ||
33 | "./modules" {puts "TESTING ERROR 6\n";exit} | ||
34 | "./firmware" {puts "TESTING ERROR 7\n";exit} | ||
35 | "libc.so" | ||
36 | } | ||
37 | after 100 | ||
38 | |||
39 | send -- "cd /usr/lib; find .\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 8\n";exit} | ||
42 | "grub" {puts "TESTING ERROR 9\n";exit} | ||
43 | "mozilla" {puts "TESTING ERROR 10\n";exit} | ||
44 | "libdl.so" | ||
45 | } | ||
46 | after 100 | ||
47 | |||
48 | puts "\nall done\n" | ||