Added a test for the database protection feature.

This commit is contained in:
BritishTeapot 2025-04-01 19:52:37 +02:00
parent 4c8092378b
commit cf2b7a280a

View File

@ -119,6 +119,13 @@ cat ./protected/motto >/dev/null 2>/dev/null &&
echo "[ICFS-TEST]: OK" ||
echo "[ICFS-TEST]: echo cannot read protected/motto despite access being permitted!" # OK
# test database access
if [[ -r "./.pt.db" || -w "./.pt.db" ]]; then
echo "[ICFS-TEST]: permanent permissions is accessible!"
else
echo "[ICFS-TEST]: OK"
fi
# unmount
sleep 0.5