Added test suite to pre-commit hooks.
This commit is contained in:
parent
6af8bed428
commit
acd3b31a1b
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue