Added test suite to pre-commit hooks.

This commit is contained in:
Wen Kokke 2020-08-19 22:23:08 +02:00
parent 6af8bed428
commit acd3b31a1b

View file

@ -1,12 +1,15 @@
#!/bin/sh
#
# Check if fix-whitespace is installed, and if so, run it.
#
# Check if fix-whitespace is installed, and if so, run it.
if ! command -v fix-whitespace &> /dev/null
then
echo "fix-whitespace could not be found"
echo "Please install fix-whitespace (see README.md)"
exit
else
echo "Checking for whitespace violations..."
fix-whitespace --check
fi
# Run the test suite.
echo "Running the test suite..."
make test