Skip to content

Commit

Permalink
Generate reports and store them in files
Browse files Browse the repository at this point in the history
  • Loading branch information
pinventado authored Sep 10, 2018
1 parent 0310f43 commit 311b0f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(TEST_PATH)/unittest: $(TEST_PATH)/unittest.cc

test: /usr/lib/libgtest.a $(TEST_PATH)/unittest
@echo -e "\n========================\nRunning unit test\n========================\n"
@./$(TEST_PATH)/unittest
@./$(TEST_PATH)/unittest --gtest_output="xml:unittest.xml"
@echo -e "\n========================\nUnit test complete\n========================\n"

$(TEST_PATH)/compile_commands.json :
Expand All @@ -48,6 +48,7 @@ ifndef HAS_CLANGFMT
endif
@echo -e "========================\nRunning format checker\n========================\n"
@diff --suppress-common-lines --color=always -u1 <(cat $(FILENAMES)) <(clang-format $(FILENAMES)) || exit 0
@clang-format $(FILENAMES) -output-replacements-xml > format.xml
@echo -e "========================\nFormat checking complete\n========================\n"

all: test stylecheck formatcheck
Expand Down

0 comments on commit 311b0f3

Please sign in to comment.