Changed tests to use the database file argument
This commit is contained in:
		@@ -23,12 +23,12 @@ if [[ $1 == "--setuid" ]]; then
 | 
				
			|||||||
  sudo chown icfs: ../build/icfs && sudo chmod 4777 ../build/icfs
 | 
					  sudo chown icfs: ../build/icfs && sudo chmod 4777 ../build/icfs
 | 
				
			||||||
  chmod g+w . # needed for icfs to be able to create the database
 | 
					  chmod g+w . # needed for icfs to be able to create the database
 | 
				
			||||||
  echo "Valgrind will not be used due to setuid compatibility issues."
 | 
					  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
 | 
					  sleep 1
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  echo "Database protection will not be tested due to the lack of setuid capabilites."
 | 
					  echo "Database protection will not be tested due to the lack of setuid capabilites."
 | 
				
			||||||
  echo "To test it, run this script with '--setuid'."
 | 
					  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
 | 
					  sleep 5
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user