Changed tests to use the database file argument

This commit is contained in:
BritishTeapot 2025-04-07 19:38:56 +02:00
parent 16b8d77fb9
commit beec6f4a4c

View File

@ -23,12 +23,12 @@ if [[ $1 == "--setuid" ]]; then
sudo chown icfs: ../build/icfs && sudo chmod 4777 ../build/icfs
chmod g+w . # needed for icfs to be able to create the database
echo "Valgrind will not be used due to setuid compatibility issues."
../build/icfs -o default_permissions ./protected &
../build/icfs -o default_permissions ./protected ./.pt.db &
sleep 1
else
echo "Database protection will not be tested due to the lack of setuid capabilites."
echo "To test it, run this script with '--setuid'."
valgrind -s ../build/icfs -o default_permissions ./protected &
valgrind -s ../build/icfs -o default_permissions ./protected ./.pt.db &
sleep 5
fi