summaryrefslogtreecommitdiffstats
path: root/tests/tcg/aarch64
diff options
context:
space:
mode:
authorAlex Bennée2018-05-21 11:38:37 +0200
committerAlex Bennée2018-06-20 21:22:34 +0200
commit607bf9b5a5245563a80cb9484f2fd85d58c46fdc (patch)
tree929327d71eae2409a588c6729fc69d7d320ba6b0 /tests/tcg/aarch64
parenttests/Makefile.include: add [build|clean|check]-tcg targets (diff)
downloadqemu-607bf9b5a5245563a80cb9484f2fd85d58c46fdc.tar.gz
qemu-607bf9b5a5245563a80cb9484f2fd85d58c46fdc.tar.xz
qemu-607bf9b5a5245563a80cb9484f2fd85d58c46fdc.zip
tests/tcg: add run, diff, and skip helper macros
As we aren't using the default runners for all the test cases it is easy to miss out things like timeouts. To help with this we add some helpers and use them so we only need to make core changes in one place. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/tcg/aarch64')
-rw-r--r--tests/tcg/aarch64/Makefile.target6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target
index 7dba32138d..08c45b8470 100644
--- a/tests/tcg/aarch64/Makefile.target
+++ b/tests/tcg/aarch64/Makefile.target
@@ -13,7 +13,5 @@ TESTS:=$(AARCH64_TESTS)
fcvt: LDFLAGS+=-lm
run-fcvt: fcvt
- $(call quiet-command, \
- $(QEMU) $< > fcvt.out && \
- diff -u $(AARCH64_SRC)/fcvt.ref fcvt.out, \
- "TEST", "$< (default) on $(TARGET_NAME)")
+ $(call run-test,$<,$(QEMU) $<, "$< on $(TARGET_NAME)")
+ $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref)