From e0b63b2978552cd21ed23343232de720157a282d Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Wed, 24 Mar 2021 23:24:52 +0100 Subject: tests: introduce test-checkstyle-diff Make test-checkstyle-diff is a new target which checks PEP8 compliance only for changed files. This makes it faster to execute and also more readable as most of the time, only changed files will fail. Type: improvement Signed-off-by: Klement Sekera Change-Id: I71baca76ab3a21a7a3790617cbfb0d48aacbd9ec --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a1226a7fc37..78300e2dfe6 100644 --- a/Makefile +++ b/Makefile @@ -206,6 +206,7 @@ help: @echo " checkstyle - check coding style" @echo " checkstyle-commit - check commit message format" @echo " checkstyle-test - check test framework coding style" + @echo " checkstyle-test-diff - check test framework coding style (only changed files)" @echo " checkstyle-api - check api for incompatible changes" @echo " fixstyle - fix coding style" @echo " doxygen - (re)generate documentation" @@ -478,6 +479,10 @@ test-wipe-all: test-checkstyle: @make -C test checkstyle +.PHONY: test-checkstyle-diff +test-checkstyle-diff: + @make -C test checkstyle-diff + .PHONY: test-refresh-deps test-refresh-deps: @make -C test refresh-deps -- cgit 1.2.3-korg