pre-commit bash script that tests and runs test frameworks (if existing) and exits if tests fail