All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable
@ 2019-05-08  7:55 Thomas Huth
  2019-05-08 13:13 ` Markus Armbruster
  2019-05-09 14:03 ` Stefano Garzarella
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2019-05-08  7:55 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Paolo Bonzini, Philippe Mathieu-Daudé,
	Markus Armbruster

I recently noticed that test-obj-y contains a file called
tests/check-block-qtest.o which simply does not belong to any .c
file and thus wondered why this is not causing any trouble. It is
only used to add -Itests to the command line (which refers to the
build directory). However, it is not needed because "-iquote $(@D)"
already sets this up in rules.mak. Thus we can simply remove this
variable.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 v2: Fixed patch description with the information that Paolo provided.

 tests/Makefile.include | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 7c8b9c84b2..dfc4b7746f 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -482,25 +482,6 @@ GENERATED_FILES += tests/test-qapi-types.h \
 	tests/test-qapi-events-sub-sub-module.h \
 	tests/test-qapi-introspect.h
 
-test-obj-y = tests/check-qnum.o tests/check-qstring.o tests/check-qdict.o \
-	tests/check-qlist.o tests/check-qnull.o tests/check-qobject.o \
-	tests/check-qjson.o tests/check-qlit.o \
-	tests/check-block-qtest.o \
-	tests/test-coroutine.o tests/test-string-output-visitor.o \
-	tests/test-string-input-visitor.o tests/test-qobject-output-visitor.o \
-	tests/test-clone-visitor.o \
-	tests/test-qobject-input-visitor.o \
-	tests/test-qmp-cmds.o tests/test-visitor-serialization.o \
-	tests/test-x86-cpuid.o tests/test-mul64.o tests/test-int128.o \
-	tests/test-opts-visitor.o tests/test-qmp-event.o \
-	tests/rcutorture.o tests/test-rcu-list.o \
-	tests/test-rcu-simpleq.o \
-	tests/test-rcu-tailq.o \
-	tests/test-qdist.o tests/test-shift128.o \
-	tests/test-qht.o tests/qht-bench.o tests/test-qht-par.o \
-	tests/atomic_add-bench.o tests/atomic64-bench.o
-
-$(test-obj-y): QEMU_INCLUDES += -Itests
 QEMU_CFLAGS += -I$(SRC_PATH)/tests
 
 
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable
  2019-05-08  7:55 [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable Thomas Huth
@ 2019-05-08 13:13 ` Markus Armbruster
  2019-05-09 14:03 ` Stefano Garzarella
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2019-05-08 13:13 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-trivial, Paolo Bonzini, Philippe Mathieu-Daudé, qemu-devel

Thomas Huth <thuth@redhat.com> writes:

> I recently noticed that test-obj-y contains a file called
> tests/check-block-qtest.o which simply does not belong to any .c
> file and thus wondered why this is not causing any trouble. It is
> only used to add -Itests to the command line (which refers to the
> build directory). However, it is not needed because "-iquote $(@D)"
> already sets this up in rules.mak. Thus we can simply remove this
> variable.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Markus Armbruster <armbru@redhat.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable
  2019-05-08  7:55 [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable Thomas Huth
  2019-05-08 13:13 ` Markus Armbruster
@ 2019-05-09 14:03 ` Stefano Garzarella
  1 sibling, 0 replies; 3+ messages in thread
From: Stefano Garzarella @ 2019-05-09 14:03 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-trivial, Paolo Bonzini, Philippe Mathieu-Daudé,
	qemu-devel, Markus Armbruster

On Wed, May 08, 2019 at 09:55:27AM +0200, Thomas Huth wrote:
> I recently noticed that test-obj-y contains a file called
> tests/check-block-qtest.o which simply does not belong to any .c
> file and thus wondered why this is not causing any trouble. It is
> only used to add -Itests to the command line (which refers to the
> build directory). However, it is not needed because "-iquote $(@D)"
> already sets this up in rules.mak. Thus we can simply remove this
> variable.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  v2: Fixed patch description with the information that Paolo provided.
> 
>  tests/Makefile.include | 19 -------------------
>  1 file changed, 19 deletions(-)

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

Thanks,
Stefano


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-09 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08  7:55 [Qemu-devel] [PATCH v2] tests/Makefile: Remove unused test-obj-y variable Thomas Huth
2019-05-08 13:13 ` Markus Armbruster
2019-05-09 14:03 ` Stefano Garzarella

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.