[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tes
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests |
Date: |
Tue, 22 Jan 2019 18:45:02 -0500 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
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 <address@hidden>
(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
- [Qemu-devel] [PATCH v3 00/11] current fpu/next queue (tests & build fix), Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 01/11] fp-bench: fix update_random_ops, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 03/11] berkeley-testfloat-3: pull changes, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 04/11] tests/fp/Makefile: do not use gcc-only -W flags, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 02/11] fp-bench: remove wrong exponent raise in fill_random, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 08/11] include/fpu/softfloat: Fix compilation with Clang on s390x, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 10/11] scripts/archive-source: include softfloat tests, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 06/11] tests/fp/platform.h: include config-host.h, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 07/11] softfloat: enforce softfloat if the host's FMA is broken, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests, Alex Bennée, 2019/01/22
- Re: [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v3 05/11] fp-test: fix signature of slow_clear_flags and qemu_clear_flags, Alex Bennée, 2019/01/22
- [Qemu-devel] [PATCH v3 11/11] tests/Makfile: add check-softfloat rule, Alex Bennée, 2019/01/22
- Re: [Qemu-devel] [PATCH v3 00/11] current fpu/next queue (tests & build fix), no-reply, 2019/01/31