mirror of
https://github.com/intel/isa-l.git
synced 2025-01-19 04:26:08 +01:00
test: Check for sign-off and format in more files
Change-Id: Id780756a6fb201b22fc3ac1a67955ed61b436e8d Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
parent
0ad8ea9a15
commit
804cf21206
@ -41,7 +41,7 @@ fi
|
||||
|
||||
if hash grep; then
|
||||
echo "Checking for dos and whitespace violations..."
|
||||
for f in `git ls-files '*.c' '*.h' '*.asm' '*.inc' '*.am' '*.txt' '*.md' `; do
|
||||
for f in `git ls-files '*.c' '*.h' '*.asm' '*.inc' '*.am' '*.txt' '*.md' '*.def' '*.ac' '*.sh' '*.in' 'Makefile*' `; do
|
||||
[ "$verbose" -gt 0 ] 2> /dev/null && echo "checking $f"
|
||||
if grep -q '[[:space:]]$' $f ; then
|
||||
echo " File found with trailing whitespace: $f"
|
||||
@ -54,6 +54,12 @@ if hash grep; then
|
||||
done
|
||||
fi
|
||||
|
||||
echo "Checking for signoff in commit message..."
|
||||
if ! git log -n 1 --format=%B | grep -q "^Signed-off-by:" ; then
|
||||
echo " Commit not signed off. Please read src/CONTRIBUTING.md"
|
||||
rc=1
|
||||
fi
|
||||
|
||||
[ "$rc" -gt 0 ] && echo Format Fail || echo Format Pass
|
||||
|
||||
exit $rc
|
||||
|
Loading…
x
Reference in New Issue
Block a user