Skip to content

Commit

Permalink
add checkwhitespace check for the auto-tester
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Jul 4, 2015
1 parent c3a39c5 commit 6577457
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,20 @@ html_consolidated :
cat $(DOCSRC)/std_consolidated_header.html $(BIGHTMLS) \
$(DOCSRC)/std_consolidated_footer.html > $(DOC_OUTPUT_DIR)/std_consolidated.html

#################### test for undesired white spaces ##########################
CWS_MAKEFILES = posix.mak win32.mak win64.mak osmodel.mak
NOT_MAKEFILES = $(ALL_D_FILES) $(ALL_C_FILES) index.d
GREP = grep

checkwhitespace:
$(GREP) -n -U -P "([ \t]$$|\r)" $(CWS_MAKEFILES) ; test "$$?" -ne 0
$(GREP) -n -U -P "( $$|\r\t)" $(NOT_MAKEFILES) ; test "$$?" -ne 0


#############################

.PHONY : auto-tester-build
auto-tester-build: all
auto-tester-build: all checkwhitespace

.PHONY : auto-tester-test
auto-tester-test: unittest
Expand Down

0 comments on commit 6577457

Please sign in to comment.