[CRIU] [PATCH] test/make: Include .d files

Andrei Vagin avagin at virtuozzo.com
Thu Apr 26 22:03:09 MSK 2018


Applied, thanks!
On Tue, Apr 24, 2018 at 07:50:03PM +0100, Dmitry Safonov wrote:
> Include deps files to recompile tests when dependency has changed.
> 
> Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> Reported-by: Andrei Vagin <avagin at virtuozzo.com>
> Signed-off-by: Dmitry Safonov <dima at arista.com>
> ---
>  test/zdtm/lib/Makefile        | 1 +
>  test/zdtm/static/Makefile     | 2 ++
>  test/zdtm/transition/Makefile | 1 +
>  3 files changed, 4 insertions(+)
> 
> diff --git a/test/zdtm/lib/Makefile b/test/zdtm/lib/Makefile
> index d2d9f1cc31dc..d0a667862aeb 100644
> --- a/test/zdtm/lib/Makefile
> +++ b/test/zdtm/lib/Makefile
> @@ -16,6 +16,7 @@ LDLIBS	:= $(LIB)
>  TARGETS	:= $(LIB) $(BIN)
>  
>  include ../Makefile.inc
> +include $(DEP)
>  
>  all:	$(TARGETS)
>  .PHONY: all
> diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile
> index 244b7070640e..ee74b47c9c5c 100644
> --- a/test/zdtm/static/Makefile
> +++ b/test/zdtm/static/Makefile
> @@ -376,6 +376,8 @@ OUT	= $(TST:%=%.out)
>  STATE	= $(TST_STATE:%=%.state)
>  STATE_OUT	= $(TST_STATE:%=%.out)
>  
> +include $(DEP)
> +
>  all:	$(TST) criu-rtc.so
>  install: all
>  .PHONY: all install
> diff --git a/test/zdtm/transition/Makefile b/test/zdtm/transition/Makefile
> index f482a8a09c9d..c64e4289d0da 100644
> --- a/test/zdtm/transition/Makefile
> +++ b/test/zdtm/transition/Makefile
> @@ -38,6 +38,7 @@ PID	= $(TST:%=%.pid)
>  OUT	= $(TST:%=%.out)
>  
>  include ../Makefile.inc
> +include $(DEP)
>  
>  all:	$(TST)
>  install: all
> -- 
> 2.13.6
> 


More information about the CRIU mailing list