Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734575 > unrolled thread

[PATCH] selftests: futex: Makefile: fix for lops in targets to run silently

Started byShuah Khan <shuahkh@osg.samsung.com>
First post2017-09-19 03:00 +0200
Last post2017-09-23 02:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] selftests: futex: Makefile: fix for lops in targets to run silently Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-19 03:00 +0200
    [PATCH] selftests: Makefile: fix for lops in targets to run silently Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-19 03:00 +0200
    Re: [PATCH] selftests: futex: Makefile: fix for lops in targets to  run silently Darren Hart <dvhart@infradead.org> - 2017-09-23 02:30 +0200

#1734575 — [PATCH] selftests: futex: Makefile: fix for lops in targets to run silently

FromShuah Khan <shuahkh@osg.samsung.com>
Date2017-09-19 03:00 +0200
Subject[PATCH] selftests: futex: Makefile: fix for lops in targets to run silently
Message-ID<urf3j-5wy-13@gated-at.bofh.it>
Fix for loops in targets to run silently to avoid cluttering the test
results.

Suppresses the following from targets:

for DIR in functional; do               \
        BUILD_TARGET=./tools/testing/selftests/futex/$DIR; \
        mkdir $BUILD_TARGET  -p;        \
        make OUTPUT=$BUILD_TARGET -C $DIR all;\
done

./tools/testing/selftests/futex/run.sh

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 tools/testing/selftests/futex/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/futex/Makefile b/tools/testing/selftests/futex/Makefile
index 9358cb210fd5..f0c0369ccb79 100644
--- a/tools/testing/selftests/futex/Makefile
+++ b/tools/testing/selftests/futex/Makefile
@@ -7,7 +7,7 @@ TEST_PROGS := run.sh
 include ../lib.mk
 
 all:
-	for DIR in $(SUBDIRS); do		\
+	@for DIR in $(SUBDIRS); do		\
 		BUILD_TARGET=$(OUTPUT)/$$DIR;	\
 		mkdir $$BUILD_TARGET  -p;	\
 		make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
@@ -17,7 +17,7 @@ all:
 	done
 
 override define RUN_TESTS
-	cd $(OUTPUT); ./run.sh
+	@cd $(OUTPUT); ./run.sh
 endef
 
 override define INSTALL_RULE
@@ -36,7 +36,7 @@ override define EMIT_TESTS
 endef
 
 override define CLEAN
-	for DIR in $(SUBDIRS); do		\
+	@for DIR in $(SUBDIRS); do		\
 		BUILD_TARGET=$(OUTPUT)/$$DIR;	\
 		mkdir $$BUILD_TARGET  -p;	\
 		make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
-- 
2.11.0

[toc] | [next] | [standalone]


#1734576 — [PATCH] selftests: Makefile: fix for lops in targets to run silently

FromShuah Khan <shuahkh@osg.samsung.com>
Date2017-09-19 03:00 +0200
Subject[PATCH] selftests: Makefile: fix for lops in targets to run silently
Message-ID<urf3j-5wy-15@gated-at.bofh.it>
In reply to#1734575
Fix for loops in targets to run silently to avoid cluttering the test
results.

Suppresses the following from targets: e.g run from breakpoints

for TARGET in breakpoints; do		\
	BUILD_TARGET=$BUILD/$TARGET;	\
	mkdir $BUILD_TARGET  -p;	\
	make OUTPUT=$BUILD_TARGET -C $TARGET;\
done;

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 tools/testing/selftests/Makefile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index f4368db011ea..ff805643b5f7 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -66,32 +66,32 @@ endif
 
 export BUILD
 all:
-	for TARGET in $(TARGETS); do		\
+	@for TARGET in $(TARGETS); do		\
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		mkdir $$BUILD_TARGET  -p;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET;\
 	done;
 
 run_tests: all
-	for TARGET in $(TARGETS); do \
+	@for TARGET in $(TARGETS); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET run_tests;\
 	done;
 
 hotplug:
-	for TARGET in $(TARGETS_HOTPLUG); do \
+	@for TARGET in $(TARGETS_HOTPLUG); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET;\
 	done;
 
 run_hotplug: hotplug
-	for TARGET in $(TARGETS_HOTPLUG); do \
+	@for TARGET in $(TARGETS_HOTPLUG); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET run_full_test;\
 	done;
 
 clean_hotplug:
-	for TARGET in $(TARGETS_HOTPLUG); do \
+	@for TARGET in $(TARGETS_HOTPLUG); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\
 	done;
@@ -107,7 +107,7 @@ install:
 ifdef INSTALL_PATH
 	@# Ask all targets to install their files
 	mkdir -p $(INSTALL_PATH)
-	for TARGET in $(TARGETS); do \
+	@for TARGET in $(TARGETS); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET INSTALL_PATH=$(INSTALL_PATH)/$$TARGET install; \
 	done;
@@ -132,7 +132,7 @@ else
 endif
 
 clean:
-	for TARGET in $(TARGETS); do \
+	@for TARGET in $(TARGETS); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		make OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\
 	done;
-- 
2.11.0

[toc] | [prev] | [next] | [standalone]


#1737938 — Re: [PATCH] selftests: futex: Makefile: fix for lops in targets to run silently

FromDarren Hart <dvhart@infradead.org>
Date2017-09-23 02:30 +0200
SubjectRe: [PATCH] selftests: futex: Makefile: fix for lops in targets to run silently
Message-ID<usGut-4u3-5@gated-at.bofh.it>
In reply to#1734575
On Mon, Sep 18, 2017 at 06:59:15PM -0600, Shuah Khan wrote:
> Fix for loops in targets to run silently to avoid cluttering the test
> results.
> 
> Suppresses the following from targets:
> 
> for DIR in functional; do               \
>         BUILD_TARGET=./tools/testing/selftests/futex/$DIR; \
>         mkdir $BUILD_TARGET  -p;        \
>         make OUTPUT=$BUILD_TARGET -C $DIR all;\
> done
> 
> ./tools/testing/selftests/futex/run.sh
> 
> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

Thanks Shuah,

Reviewed-by: Darren Hart (VMware) <dvhart@infradead.org>

-- 
Darren Hart
VMware Open Source Technology Center

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web