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 #!/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 if ! command -v fix-whitespace &> /dev/null
then then
echo "fix-whitespace could not be found" echo "Please install fix-whitespace (see README.md)"
exit exit
else else
echo "Checking for whitespace violations..."
fix-whitespace --check fix-whitespace --check
fi fi
# Run the test suite.
echo "Running the test suite..."
make test