aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-09-26 01:22:59 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2019-09-26 01:22:59 +0200
commit7be7e2d326540135273b221f594cd22057ac04dc (patch)
treef71f7cc696d922462183744588a0154c736e5227 /test
parenttesting (diff)
downloadfirejail-7be7e2d326540135273b221f594cd22057ac04dc.tar.gz
firejail-7be7e2d326540135273b221f594cd22057ac04dc.tar.zst
firejail-7be7e2d326540135273b221f594cd22057ac04dc.zip
testing: rename and simplify
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/fs.sh10
-rwxr-xr-xtest/fs/private-cache.exp6
-rwxr-xr-xtest/fs/whitelist-readonly.exp (renamed from test/fs/readonly-whitelist.exp)0
-rwxr-xr-xtest/fs/whitelist-whitespace.exp7
4 files changed, 8 insertions, 15 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh
index 7ea8de542..fa642443f 100755
--- a/test/fs/fs.sh
+++ b/test/fs/fs.sh
@@ -21,8 +21,8 @@ mkdir ~/_firejail_test_dir/test1
21touch ~/_firejail_test_dir/test1/b 21touch ~/_firejail_test_dir/test1/b
22echo "TESTING: read/write (test/fs/read-write.exp)" 22echo "TESTING: read/write (test/fs/read-write.exp)"
23./read-write.exp 23./read-write.exp
24echo "TESTING: readonly whitelist (test/fs/readonly-whitelist.exp)" 24echo "TESTING: whitelist readonly (test/fs/whitelist-readonly.exp)"
25./readonly-whitelist.exp 25./whitelist-readonly.exp
26rm -fr ~/_firejail_test_* 26rm -fr ~/_firejail_test_*
27 27
28echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)" 28echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)"
@@ -108,15 +108,15 @@ echo "TESTING: recursive mkdir (test/fs/mkdir.exp)"
108echo "TESTING: double whitelist (test/fs/whitelist-double.exp)" 108echo "TESTING: double whitelist (test/fs/whitelist-double.exp)"
109./whitelist-double.exp 109./whitelist-double.exp
110 110
111echo "TESTING: whitelist file with whitespaces (test/fs/whitelist-whitespace.exp)"
112./whitelist-whitespace.exp
113
114echo "TESTING: whitelist (test/fs/whitelist.exp)" 111echo "TESTING: whitelist (test/fs/whitelist.exp)"
115./whitelist.exp 112./whitelist.exp
116 113
117echo "TESTING: whitelist dev, var(test/fs/whitelist-dev.exp)" 114echo "TESTING: whitelist dev, var(test/fs/whitelist-dev.exp)"
118./whitelist-dev.exp 115./whitelist-dev.exp
119 116
117echo "TESTING: whitelist with whitespaces (test/fs/whitelist-whitespace.exp)"
118./whitelist-whitespace.exp
119
120echo "TESTING: fscheck --bind non root (test/fs/fscheck-bindnoroot.exp)" 120echo "TESTING: fscheck --bind non root (test/fs/fscheck-bindnoroot.exp)"
121./fscheck-bindnoroot.exp 121./fscheck-bindnoroot.exp
122 122
diff --git a/test/fs/private-cache.exp b/test/fs/private-cache.exp
index 0a1f00eb5..ddff2d02d 100755
--- a/test/fs/private-cache.exp
+++ b/test/fs/private-cache.exp
@@ -21,10 +21,10 @@ expect {
21} 21}
22sleep 1 22sleep 1
23 23
24send -- "ls ~/.cache | wc -l\r" 24send -- "ls -l ~/.cache\r"
25expect { 25expect {
26 timeout {puts "TESTING ERROR 2\n";exit} 26 timeout {puts "TESTING ERROR 2\n";exit}
27 "\n0" 27 "total 0"
28} 28}
29after 100 29after 100
30 30
@@ -43,7 +43,7 @@ after 100
43send -- "firejail --noprofile --private --private-cache\r" 43send -- "firejail --noprofile --private --private-cache\r"
44expect { 44expect {
45 timeout {puts "TESTING ERROR 4\n";exit} 45 timeout {puts "TESTING ERROR 4\n";exit}
46 "tmpfs not mounted" 46 "Warning"
47} 47}
48sleep 1 48sleep 1
49 49
diff --git a/test/fs/readonly-whitelist.exp b/test/fs/whitelist-readonly.exp
index 784fc36bd..784fc36bd 100755
--- a/test/fs/readonly-whitelist.exp
+++ b/test/fs/whitelist-readonly.exp
diff --git a/test/fs/whitelist-whitespace.exp b/test/fs/whitelist-whitespace.exp
index b16668557..959fb9409 100755
--- a/test/fs/whitelist-whitespace.exp
+++ b/test/fs/whitelist-whitespace.exp
@@ -14,13 +14,6 @@ expect {
14} 14}
15sleep 1 15sleep 1
16 16
17send -- "ls ~ | wc -l\r"
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 "\n1"
21}
22after 100
23
24send -- "ls ~\r" 17send -- "ls ~\r"
25expect { 18expect {
26 timeout {puts "TESTING ERROR 3\n";exit} 19 timeout {puts "TESTING ERROR 3\n";exit}