From: Markus Armbruster <armbru@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-trivial@nongnu.org, qemu-stable@nongnu.org,
qemu-devel@nongnu.org, anthony@codemonkey.ws, lersek@redhat.com,
afaerber@suse.de
Subject: Re: [Qemu-trivial] [PATCH v3 1/2] tests: Fix schema parser test for in-tree build
Date: Mon, 30 Sep 2013 10:51:35 +0200 [thread overview]
Message-ID: <87y56eitew.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <524880C3.6000801@msgid.tls.msk.ru> (Michael Tokarev's message of "Sun, 29 Sep 2013 23:34:27 +0400")
Michael Tokarev <mjt@tls.msk.ru> writes:
> 24.09.2013 11:43, armbru@redhat.com wrote:
>> 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.
>
> []
>> .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
>
> Hmm. Maybe these new files should be cleaned up somehow by
> `make clean' ?
Guess so. However, "make clean" doesn't clean *anything* in tests/
right now. Separate fix?
WARNING: multiple messages have this Message-ID (diff)
From: Markus Armbruster <armbru@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-trivial@nongnu.org, qemu-stable@nongnu.org,
qemu-devel@nongnu.org, anthony@codemonkey.ws, lersek@redhat.com,
afaerber@suse.de
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v3 1/2] tests: Fix schema parser test for in-tree build
Date: Mon, 30 Sep 2013 10:51:35 +0200 [thread overview]
Message-ID: <87y56eitew.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <524880C3.6000801@msgid.tls.msk.ru> (Michael Tokarev's message of "Sun, 29 Sep 2013 23:34:27 +0400")
Michael Tokarev <mjt@tls.msk.ru> writes:
> 24.09.2013 11:43, armbru@redhat.com wrote:
>> 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.
>
> []
>> .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
>
> Hmm. Maybe these new files should be cleaned up somehow by
> `make clean' ?
Guess so. However, "make clean" doesn't clean *anything* in tests/
right now. Separate fix?
next prev parent reply other threads:[~2013-09-30 8:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 7:43 [Qemu-trivial] [PATCH v3 0/2] tests: Fixes for in-tree build armbru
2013-09-24 7:43 ` [Qemu-devel] " armbru
2013-09-24 7:43 ` [Qemu-trivial] [PATCH v3 1/2] tests: Fix schema parser test " armbru
2013-09-24 7:43 ` [Qemu-devel] " armbru
2013-09-29 19:34 ` [Qemu-trivial] " Michael Tokarev
2013-09-29 19:34 ` [Qemu-devel] " Michael Tokarev
2013-09-30 8:51 ` Markus Armbruster [this message]
2013-09-30 8:51 ` Markus Armbruster
2013-10-02 18:56 ` Michael Tokarev
2013-10-02 18:56 ` [Qemu-devel] " Michael Tokarev
2013-09-24 7:43 ` [Qemu-trivial] [PATCH v3 2/2] tests: Update .gitignore for test-int128 and test-bitops armbru
2013-09-24 7:43 ` [Qemu-devel] " armbru
2013-09-29 19:35 ` [Qemu-trivial] " Michael Tokarev
2013-09-29 19:35 ` [Qemu-devel] " Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y56eitew.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=afaerber@suse.de \
--cc=anthony@codemonkey.ws \
--cc=lersek@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.