* [Qemu-devel] [PATCH 1/2] tests: Fix schema parser test for in-tree build
2013-08-20 7:47 [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build armbru
@ 2013-08-20 7:47 ` armbru
2013-08-20 7:47 ` [Qemu-devel] [PATCH 2/2] tests: Update .gitignore for test-int128 and test-bitops armbru
2013-08-20 10:45 ` [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build Andreas Färber
2 siblings, 0 replies; 5+ messages in thread
From: armbru @ 2013-08-20 7:47 UTC (permalink / raw)
To: qemu-devel; +Cc: lersek, anthony
From: Markus Armbruster <armbru@redhat.com>
Commit 4f193e3 added the test, but screwed up in-tree builds
(SRCDIR=.): the tests's output overwrites the expected output, and is
thus compared to itself.
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
tests/.gitignore | 1 +
tests/Makefile | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/.gitignore b/tests/.gitignore
index fb05c2a..d9c2ef4 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -19,3 +19,4 @@ test-thread-pool
test-x86-cpuid
test-xbzrle
*-test
+qapi-schema/*.test.*
diff --git a/tests/Makefile b/tests/Makefile
index d044908..ad98439 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -247,10 +247,10 @@ check-tests/test-qapi.py: tests/test-qapi.py
.PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
- $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py <$^ >$*.out 2>$*.err; echo $$? >$*.exit, " TEST $*.out")
- @diff -q $(SRC_PATH)/$*.out $*.out
- @diff -q $(SRC_PATH)/$*.err $*.err
- @diff -q $(SRC_PATH)/$*.exit $*.exit
+ $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py <$^ >$*.test.out 2>$*.test.err; echo $$? >$*.test.exit, " TEST $*.out")
+ @diff -q $(SRC_PATH)/$*.out $*.test.out
+ @diff -q $(SRC_PATH)/$*.err $*.test.err
+ @diff -q $(SRC_PATH)/$*.exit $*.test.exit
# Consolidated targets
--
1.8.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Qemu-devel] [PATCH 2/2] tests: Update .gitignore for test-int128 and test-bitops
2013-08-20 7:47 [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build armbru
2013-08-20 7:47 ` [Qemu-devel] [PATCH 1/2] tests: Fix schema parser test " armbru
@ 2013-08-20 7:47 ` armbru
2013-08-20 10:45 ` [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build Andreas Färber
2 siblings, 0 replies; 5+ messages in thread
From: armbru @ 2013-08-20 7:47 UTC (permalink / raw)
To: qemu-devel; +Cc: lersek, anthony
From: Markus Armbruster <armbru@redhat.com>
Forgotten in commit 6046c62 and 3464700.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
tests/.gitignore | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/.gitignore b/tests/.gitignore
index d9c2ef4..9ac044d 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -5,8 +5,10 @@ check-qjson
check-qlist
check-qstring
test-aio
+test-bitops
test-cutils
test-hbitmap
+test-int128
test-iov
test-mul64
test-qapi-types.[ch]
--
1.8.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build
2013-08-20 7:47 [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build armbru
2013-08-20 7:47 ` [Qemu-devel] [PATCH 1/2] tests: Fix schema parser test " armbru
2013-08-20 7:47 ` [Qemu-devel] [PATCH 2/2] tests: Update .gitignore for test-int128 and test-bitops armbru
@ 2013-08-20 10:45 ` Andreas Färber
2013-08-20 11:43 ` Markus Armbruster
2 siblings, 1 reply; 5+ messages in thread
From: Andreas Färber @ 2013-08-20 10:45 UTC (permalink / raw)
To: armbru; +Cc: lersek, qemu-devel, anthony, qemu-stable
Am 20.08.2013 09:47, schrieb armbru@redhat.com:
> From: Markus Armbruster <armbru@redhat.com>
>
> Markus Armbruster (2):
> tests: Fix schema parser test for in-tree build
> tests: Update .gitignore for test-int128 and test-bitops
Series
Reviewed-by: Andreas Färber <afaerber@suse.de>
but you should probably add Cc: qemu-stable@nongnu.org to 1/2 at least.
Andreas
>
> tests/.gitignore | 3 +++
> tests/Makefile | 8 ++++----
> 2 files changed, 7 insertions(+), 4 deletions(-)
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build
2013-08-20 10:45 ` [Qemu-devel] [PATCH 0/2] tests: Fixes for in-tree build Andreas Färber
@ 2013-08-20 11:43 ` Markus Armbruster
0 siblings, 0 replies; 5+ messages in thread
From: Markus Armbruster @ 2013-08-20 11:43 UTC (permalink / raw)
To: Andreas Färber; +Cc: lersek, qemu-devel, anthony, qemu-stable
Andreas Färber <afaerber@suse.de> writes:
> Am 20.08.2013 09:47, schrieb armbru@redhat.com:
>> From: Markus Armbruster <armbru@redhat.com>
>>
>> Markus Armbruster (2):
>> tests: Fix schema parser test for in-tree build
>> tests: Update .gitignore for test-int128 and test-bitops
>
> Series
>
> Reviewed-by: Andreas Färber <afaerber@suse.de>
>
> but you should probably add Cc: qemu-stable@nongnu.org to 1/2 at least.
Good point. v2 sent with the tag added, just to make sure it gets
picked up.
^ permalink raw reply [flat|nested] 5+ messages in thread