Browse Source

Add showfailed target

It will be useful to get a summary of the failed tests
Samuel Thibault 5 years ago
parent
commit
1f73deb871

+ 8 - 1
Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2011-2018                                Inria
-# Copyright (C) 2009-2017                                Université de Bordeaux
+# Copyright (C) 2009-2017, 2020                                Université de Bordeaux
 # Copyright (C) 2017                                     Guillaume Beauchamp
 # Copyright (C) 2010-2019                                CNRS
 #
@@ -165,6 +165,13 @@ recheck:
 	done ; \
 	exit $$RET
 
+showfailed:
+	@RET=0 ; \
+	for i in $(SUBDIRS) ; do \
+		make -s -C $$i showfailed || RET=1 ; \
+	done ; \
+	exit $$RET
+
 showcheck:
 	RET=0 ; \
 	for i in $(SUBDIRS) ; do \

+ 4 - 1
doc/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2011,2012,2015                           Inria
-# Copyright (C) 2009,2011,2012,2015                      Université de Bordeaux
+# Copyright (C) 2009,2011,2012,2015,2020                 Université de Bordeaux
 # Copyright (C) 2010-2019                                CNRS
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -36,6 +36,9 @@ txt_DATA = $(EXTRA_DIST)
 recheck:
 	-cat /dev/null
 
+showfailed:
+	@-cat /dev/null
+
 showcheck:
 	-cat /dev/null
 

+ 8 - 1
mic-configure

@@ -3,7 +3,7 @@
 #
 # Copyright (C) 2014,2016                                Inria
 # Copyright (C) 2013-2017                                CNRS
-# Copyright (C) 2013-2017                                Université de Bordeaux
+# Copyright (C) 2013-2017,2020                           Université de Bordeaux
 # Copyright (C) 2013                                     Thibaut Lambert
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -221,6 +221,9 @@ check:
 	$MIC_BUILD_ENV
 	\$(MAKE) \$(MFLAGS) -C build_mic check
 
+showfailed:
+	@\$(MAKE) \$(MFLAGS) -C build_mic showfailed
+
 showcheck:
 	\$(MAKE) \$(MFLAGS) -C build_mic showcheck
 
@@ -250,6 +253,10 @@ check:
 	RET=\$\$? ; \
 	STARPU_NCPUS=0 \$(MAKE) \$(MFLAGS) -C build_mic check && [ \$\$RET == 0 ]
 
+showfailed:
+	@\$(MAKE) \$(MFLAGS) -C build_host showfailed
+	@\$(MAKE) \$(MFLAGS) -C build_mic showfailed
+
 showcheck:
 	\$(MAKE) \$(MFLAGS) -C build_host showcheck
 	\$(MAKE) \$(MFLAGS) -C build_mic showcheck

+ 3 - 0
min-dgels/Makefile.in

@@ -33,6 +33,9 @@ distdir:
 check:
 	echo "No checks are implemented for min-dgels"
 
+showfailed:
+	@:
+
 showcheck: check
 
 showsuite: check

+ 8 - 1
mpi/Makefile.am

@@ -1,6 +1,6 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
-# Copyright (C) 2009-2015                                Université de Bordeaux
+# Copyright (C) 2009-2015,2020                           Université de Bordeaux
 # Copyright (C) 2011,2012,2016                           Inria
 # Copyright (C) 2010-2013,2015,2017,2018                 CNRS
 #
@@ -33,6 +33,13 @@ recheck:
 	done ; \
 	exit $$RET
 
+showfailed:
+	@RET=0 ; \
+	for i in $(SUBDIRS) ; do \
+		make -C $$i showfailed || RET=1 ; \
+	done ; \
+	exit $$RET
+
 showcheck:
 	RET=0 ; \
 	for i in $(SUBDIRS) ; do \

+ 3 - 1
mpi/src/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2012,2016                                Inria
 # Copyright (C) 2010-2019                                CNRS
-# Copyright (C) 2009-2014,2018                           Université de Bordeaux
+# Copyright (C) 2009-2014,2018, 2020                           Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -113,6 +113,8 @@ libstarpumpi_@STARPU_EFFECTIVE_VERSION@_la_SOURCES =	\
 
 recheck:
 	-cat /dev/null
+showfailed:
+	@-cat /dev/null
 showcheck:
 	-cat /dev/null
 showsuite:

+ 9 - 1
sc_hypervisor/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2011-2014                                Inria
 # Copyright (C) 2012,2015,2017,2018                      CNRS
-# Copyright (C) 2013,2015                                Université de Bordeaux
+# Copyright (C) 2013,2015,2020                           Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -24,6 +24,14 @@ versinclude_HEADERS = 	include/sc_hypervisor.h			\
 			include/sc_hypervisor_monitoring.h 	\
 			include/sc_hypervisor_policy.h 		\
 			include/sc_hypervisor_lp.h
+
+showfailed:
+	@RET=0 ; \
+	for i in $(SUBDIRS) ; do \
+		make -C $$i showfailed || RET=1 ; \
+	done ; \
+	exit $$RET
+
 showcheck:
 	RET=0 ; \
 	for i in $(SUBDIRS) ; do \

+ 4 - 1
sc_hypervisor/src/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2011-2015                                Inria
 # Copyright (C) 2012,2013,2015,2017,2018                 CNRS
-# Copyright (C) 2013                                     Université de Bordeaux
+# Copyright (C) 2013,2020                                Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -46,6 +46,9 @@ libsc_hypervisor_la_SOURCES = 				\
 
 noinst_HEADERS = sc_hypervisor_intern.h
 
+showfailed:
+	@-cat /dev/null
+
 showcheck:
 	-cat /dev/null
 

+ 3 - 1
socl/src/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2011,2012,2016                           Inria
 # Copyright (C) 2010-2013,2015,2017,2019                 CNRS
-# Copyright (C) 2009-2016                                Université de Bordeaux
+# Copyright (C) 2009-2016, 2020                                Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -138,6 +138,8 @@ libsocl_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = 						\
 
 recheck:
 	-cat /dev/null
+showfailed:
+	@-cat /dev/null
 showcheck:
 	-cat /dev/null
 showsuite:

+ 3 - 1
src/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2011-2017,2019                           Inria
-# Copyright (C) 2009-2019                                Université de Bordeaux
+# Copyright (C) 2009-2020                                Université de Bordeaux
 # Copyright (C) 2010-2015,2017,2018,2019                 CNRS
 # Copyright (C) 2013                                     Simon Archipoff
 #
@@ -415,6 +415,8 @@ dist-hook:
 
 recheck:
 	-cat /dev/null
+showfailed:
+	@-cat /dev/null
 showcheck:
 	-cat /dev/null
 showsuite:

+ 9 - 1
starpu.mk

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2017                                     Inria
 # Copyright (C) 2017, 2018, 2019                         CNRS
-# Copyright (C) 2016,2017                                Université de Bordeaux
+# Copyright (C) 2016,2017,2020                           Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -31,6 +31,14 @@ V_icc_0 = @echo "  ICC     " $@;
 V_icc_1 =
 V_icc   = $(V_icc_$(V))
 
+showfailed:
+	@! grep "^FAIL " $(TEST_LOGS) /dev/null
+	@RET=0 ; \
+	for i in $(SUBDIRS) ; do \
+		make -C $$i showfailed || RET=1 ; \
+	done ; \
+	exit $$RET
+
 showcheck:
 	-cat $(TEST_LOGS) /dev/null
 	@! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null

+ 3 - 1
starpufft/src/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2017                                     Inria
 # Copyright (C) 2010-2019                                CNRS
-# Copyright (C) 2009-2017,2019                           Université de Bordeaux
+# Copyright (C) 2009-2017,2019-2020                      Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -63,6 +63,8 @@ endif
 
 recheck:
 	-cat /dev/null
+showfailed:
+	@-cat /dev/null
 showcheck:
 	-cat /dev/null
 showsuite:

+ 8 - 0
starpurm/Makefile.am

@@ -36,6 +36,13 @@ recheck:
 	done ; \
 	exit $$RET
 
+showfailed:
+	@RET=0 ; \
+	for i in $(SUBDIRS) ; do \
+		make -C $$i showfailed || RET=1 ; \
+	done ; \
+	exit $$RET
+
 showcheck:
 	RET=0 ; \
 	for i in $(SUBDIRS) ; do \
@@ -43,6 +50,7 @@ showcheck:
 	done ; \
 	exit $$RET
 
+
 showsuite:
 	RET=0 ; \
 	for i in $(SUBDIRS) ; do \

+ 4 - 1
starpurm/src/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2017,2018                                Inria
-# Copyright (C) 2018                                     Université de Bordeaux
+# Copyright (C) 2018,2020                                Université de Bordeaux
 # Copyright (C) 2018                                     CNRS
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -44,6 +44,9 @@ endif
 noinst_HEADERS = 					\
 	starpurm_private.h
 
+showfailed:
+	@-cat /dev/null
+
 showcheck:
 	-cat /dev/null