aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-08-15 19:31:34 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-08-15 19:31:34 +0200
commitdf3f0b618e237cd2fcd74ea7a3ef398fbe290ca9 (patch)
treeede1b90fb10c8eb3f84a94fa2f61b767375dcce4 /test
parentimprove detection of symbolic links (diff)
downloadfirejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.tar.gz
firejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.tar.zst
firejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.zip
tests: make sure needed directories exist
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/fs.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh
index c1b589c29..55f5a8770 100755
--- a/test/fs/fs.sh
+++ b/test/fs/fs.sh
@@ -6,6 +6,9 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9# These directories are required by some tests:
10mkdir -p ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Videos
11
9rm -fr ~/_firejail_test_* 12rm -fr ~/_firejail_test_*
10echo "TESTING: mkdir/mkfile (test/fs/mkdir_mkfile.exp)" 13echo "TESTING: mkdir/mkfile (test/fs/mkdir_mkfile.exp)"
11./mkdir_mkfile.exp 14./mkdir_mkfile.exp
@@ -58,7 +61,7 @@ echo "TESTING: empty private-etc (test/fs/private-etc-empty.exp)"
58echo "TESTING: private-bin (test/fs/private-bin.exp)" 61echo "TESTING: private-bin (test/fs/private-bin.exp)"
59./private-bin.exp 62./private-bin.exp
60 63
61echo "TESTING: macros (test/fs/macro..exp)" 64echo "TESTING: macros (test/fs/macro.exp)"
62./macro.exp 65./macro.exp
63 66
64echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)" 67echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)"