qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Emilio G. Cota" <cota@braap.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests
Date: Tue, 22 Jan 2019 18:45:02 -0500	[thread overview]
Message-ID: <20190122234502.GA9839@flamenco> (raw)
In-Reply-To: <20190122215016.18697-10-alex.bennee@linaro.org>

On Tue, Jan 22, 2019 at 21:50:14 +0000, Alex Bennée wrote:
> Wire up test/fp-test into the main testing Makefile. Currently we skip
> some of the extF80 and f128 related tests. Once we re-factor and fix
> these tests the plumbing should get simpler.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
(snip)
> +# FPU Emulation tests (aka softfloat)
> +#
> +# As we still have some places that need fixing the rules are a little
> +# more complex than they need to be and have to override some of the
> +# generic Makefile expansions. Once we are cleanly passing all
> +# the tests we can simplify the make syntax.
> +
> +FP_TEST_BIN=$(BUILD_DIR)/tests/fp/fp-test
> +
> +# the build dir is created by configure
> +.PHONY: $(FP_TEST_BIN)
> +$(FP_TEST_BIN): $(BUILD_DIR)/tests/fp fpu/softfloat.c

I'd remove the prerequisites here: (1) tests/fp should have been
created by configure, and we're not adding a recipe for it here;
(2) fpu/softfloat.c is unnecessary, because the makefile in tests/fp
will take care of the prerequisites.

> +	$(call quiet-command, \
> +	  cd $(BUILD_DIR)/tests/fp && make, \
> +          "BUILD", $<)

I'd rather use $(MAKE) here, e.g. so that "-j" propagates.

With those two changes, the delta wrt the above would be:

 # the build dir is created by configure
 .PHONY: $(FP_TEST_BIN)
-$(FP_TEST_BIN): $(BUILD_DIR)/tests/fp fpu/softfloat.c
+$(FP_TEST_BIN):
        $(call quiet-command, \
-         cd $(BUILD_DIR)/tests/fp && make, \
-          "BUILD", $<)
+         $(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" $(notdir $@), \
+         "BUILD", "$(notdir $@)")

The rest looks good!

Thanks,

		Emilio

  reply	other threads:[~2019-01-22 23:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-22 21:50 [Qemu-devel] [PATCH v3 00/11] current fpu/next queue (tests & build fix) Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 01/11] fp-bench: fix update_random_ops Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 02/11] fp-bench: remove wrong exponent raise in fill_random Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 03/11] berkeley-testfloat-3: pull changes Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 04/11] tests/fp/Makefile: do not use gcc-only -W flags Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 05/11] fp-test: fix signature of slow_clear_flags and qemu_clear_flags Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 06/11] tests/fp/platform.h: include config-host.h Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 07/11] softfloat: enforce softfloat if the host's FMA is broken Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 08/11] include/fpu/softfloat: Fix compilation with Clang on s390x Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests Alex Bennée
2019-01-22 23:45   ` Emilio G. Cota [this message]
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 10/11] scripts/archive-source: include softfloat tests Alex Bennée
2019-01-22 21:50 ` [Qemu-devel] [PATCH v3 11/11] tests/Makfile: add check-softfloat rule Alex Bennée
2019-01-22 23:46   ` Emilio G. Cota
2019-01-31 17:56 ` [Qemu-devel] [PATCH v3 00/11] current fpu/next queue (tests & build fix) no-reply

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=20190122234502.GA9839@flamenco \
    --to=cota@braap.org \
    --cc=alex.bennee@linaro.org \
    --cc=qemu-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).