From beec6f4a4c6ad23a6ce743c4eeb0c6c1875e1537 Mon Sep 17 00:00:00 2001 From: BritishTeapot Date: Mon, 7 Apr 2025 19:38:56 +0200 Subject: [PATCH] Changed tests to use the database file argument --- test/test.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.bash b/test/test.bash index afe4d2c..eeb9782 100755 --- a/test/test.bash +++ b/test/test.bash @@ -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